Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 6th April 2017, 4:59 PM   #1
SpaceFrog Thread Starter
Member
 
SpaceFrog's Avatar
 
Join Date: May 2002
Location: Brunswick, Melb.
Posts: 1,898
Default How to run something off github

bit a programming n00b

https://gist.github.com/sebknzl/b71f...df9906348d73d6

Here's a project on github, very simple code (assuming it works)
How do I compile it? run it etc. Where do I put my inputs?

I have a laptop here, with a win7 key that is half faded. The idea is to input the known characters, and get the program to generate all the possible combinations. Then input that text file into another program PIDGEN which will confirm the correct key.
SpaceFrog is offline   Reply With Quote

Join OCAU to remove this ad!
Old 6th April 2017, 5:05 PM   #2
Quadbox
Member
 
Quadbox's Avatar
 
Join Date: Jun 2001
Location: Brisbane
Posts: 5,813
Default

Quote:
Originally Posted by SpaceFrog View Post
bit a programming n00b

https://gist.github.com/sebknzl/b71f...df9906348d73d6

Here's a project on github, very simple code (assuming it works)
How do I compile it? run it etc. Where do I put my inputs?

I have a laptop here, with a win7 key that is half faded. The idea is to input the known characters, and get the program to generate all the possible combinations. Then input that text file into another program PIDGEN which will confirm the correct key.
It's a php script. You'd edit it where it says in the scripts with your known values, then just run "php gistfile1.txt" in the console whilst in the same directory. This assumes php is in your path.

Obviously if you dont have php installed, you'll need to install it and add it to your path
Quadbox is online now   Reply With Quote
Old 7th April 2017, 11:16 AM   #3
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 31,682
Default

You need to install php in your path so you can run it from the command line.

Depending on what the program does you could run it in a live editor like this:

http://phptester.net/
__________________
You know, if you watch Titanic backwards, it's actually a heart warming tale of a ship that jumps out of the water and saves lots of drowning people.
Foliage is online now   Reply With Quote
Old 7th April 2017, 12:48 PM   #4
SpaceFrog Thread Starter
Member
 
SpaceFrog's Avatar
 
Join Date: May 2002
Location: Brunswick, Melb.
Posts: 1,898
Default

Thanks guys. I got the script to run.

I installed PHP for windows into C:\PHP\ and just copied the scripts into that path

so I run

CD\ PHP
PHP.exe input.txt > output.txt

Haven't found the valid key yet though
SpaceFrog is offline   Reply With Quote
Old 7th April 2017, 1:48 PM   #5
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 31,682
Default

Quote:
Originally Posted by SpaceFrog View Post
Thanks guys. I got the script to run.

I installed PHP for windows into C:\PHP\ and just copied the scripts into that path

so I run

CD\ PHP
PHP.exe input.txt > output.txt

Haven't found the valid key yet though
Do you have an old install? You can extract the key from the registry. What script doesn't say what version of windows the generator is for.

Are you manually trying them all by hand?
__________________
You know, if you watch Titanic backwards, it's actually a heart warming tale of a ship that jumps out of the water and saves lots of drowning people.
Foliage is online now   Reply With Quote
Old 7th April 2017, 2:14 PM   #6
Wolfje
Member
 
Wolfje's Avatar
 
Join Date: Jul 2007
Location: Brisbane
Posts: 921
Default

Quote:
Originally Posted by Foliage View Post
Do you have an old install? You can extract the key from the registry. What script doesn't say what version of windows the generator is for.

Are you manually trying them all by hand?
It looks like it's generic, all it does is loop through all the places in the key and prints all the possible keys for places where you subsititute a character with an array of what you think it might be.
Wolfje is offline   Reply With Quote
Old 8th April 2017, 4:43 PM   #7
deepspring
Member
 
deepspring's Avatar
 
Join Date: Jul 2002
Location: Maitland, NSW
Posts: 3,560
Default

I can't see the script ever working to be honest. Possibly a case of wishful thinking perhaps?

As others have said, there are free tools for extracting the CD Key from the registry. Although, I'd use caution because some have been known to pinch the bloody things.

If you are using Windows 8.1 or 10, you only need to use the CD Key once, after that the key is stored at MS and is associated with your hardware system ID and Microsoft account - just click continue or whatever the button says when prompted, and log into Microsoft when prompted later in the install.
__________________
Follow me down the rabbit hole...
Twitter | Web |
deepspring is offline   Reply With Quote
Old 9th April 2017, 9:42 AM   #8
deepspring
Member
 
deepspring's Avatar
 
Join Date: Jul 2002
Location: Maitland, NSW
Posts: 3,560
Default

I probably should mentioned something important in that last post of mine... You need to have an MS account active and working for it to work.
__________________
Follow me down the rabbit hole...
Twitter | Web |
deepspring is offline   Reply With Quote
Old 9th April 2017, 6:06 PM   #9
GumbyNoTalent
Member
 
GumbyNoTalent's Avatar
 
Join Date: Jan 2003
Location: Briz Vegas
Posts: 3,655
Default

Quote:
Originally Posted by deepspring View Post
I probably should mentioned something important in that last post of mine... You need to have an MS account active and working for it to work.
Ummm its a php script you can run it any where, and all it does is makes a list of all the possibilities to a key where you are unsure of some characters, it will work as it doesn't generate a key, it prints possible keys based on your guesses.
GumbyNoTalent is offline   Reply With Quote
Old 10th April 2017, 8:05 AM   #10
kogi
Member
 
kogi's Avatar
 
Join Date: Jan 2003
Location: 2031
Posts: 4,533
Default

Quote:
Originally Posted by SpaceFrog View Post
I have a laptop here, with a win7 key that is half faded. The idea is to input the known characters, and get the program to generate all the possible combinations. Then input that text file into another program PIDGEN which will confirm the correct key.
I think you are going about it the wrong way

Magic Jelly Bean should retrieve a windows key.

Otherwise. For a notebook it could be a generic SLIC key. What brand and windows edition is it?
kogi is online now   Reply With Quote
Old 10th April 2017, 1:35 PM   #11
SpaceFrog Thread Starter
Member
 
SpaceFrog's Avatar
 
Join Date: May 2002
Location: Brunswick, Melb.
Posts: 1,898
Default

Can't retreive key from the registry. HDD died. And it's a windows 7 laptop. So the sticker is the only source of the key.

They script appears to work. And is very quick. But the Key verifiying program I am using is too slow on the PCs here at work. Takes between 1 & 30 seconds to reject a key. Unfortunately the sticker is just too worn 1 character is missing completely and about half of the letters can be misinterpretted.

This has been something I've been after for a long time, It's another tool/technique to add to the arsenal.

Good for those stickers that have a couple of characters that are hard to read.
SpaceFrog is offline   Reply With Quote
Old 10th April 2017, 1:38 PM   #12
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 31,682
Default

Quote:
Originally Posted by SpaceFrog View Post
Can't retreive key from the registry. HDD died. And it's a windows 7 laptop. So the sticker is the only source of the key.

They script appears to work. And is very quick. But the Key verifiying program I am using is too slow on the PCs here at work. Takes between 1 & 30 seconds to reject a key. Unfortunately the sticker is just too worn 1 character is missing completely and about half of the letters can be misinterpretted.

This has been something I've been after for a long time, It's another tool/technique to add to the arsenal.

Good for those stickers that have a couple of characters that are hard to read.
Its like $25 to buy Windows 7. If you value your time just buy it?

edit: $17 to buy here
http://www.ebay.com.au/itm/Genuine-M..._6TpthxDIfAAUQ
__________________
You know, if you watch Titanic backwards, it's actually a heart warming tale of a ship that jumps out of the water and saves lots of drowning people.
Foliage is online now   Reply With Quote
Old 10th April 2017, 1:40 PM   #13
kogi
Member
 
kogi's Avatar
 
Join Date: Jan 2003
Location: 2031
Posts: 4,533
Default

Quote:
Originally Posted by SpaceFrog View Post
Can't retreive key from the registry. HDD died. And it's a windows 7 laptop. So the sticker is the only source of the key.
Laptop you can most likely use the generic slic key
kogi is online now   Reply With Quote
Old 10th April 2017, 3:35 PM   #14
deepspring
Member
 
deepspring's Avatar
 
Join Date: Jul 2002
Location: Maitland, NSW
Posts: 3,560
Default

Quote:
Originally Posted by GumbyNoTalent View Post
Ummm its a php script you can run it any where, and all it does is makes a list of all the possibilities to a key where you are unsure of some characters, it will work as it doesn't generate a key, it prints possible keys based on your guesses.
Duh.

The script does work, I've been playing with it. The output isn't very useful for guessing license keys (unless your meant to replace the X's with a partial key, which is possibly the point anyway).
__________________
Follow me down the rabbit hole...
Twitter | Web |
deepspring is offline   Reply With Quote
Old 10th April 2017, 3:42 PM   #15
deepspring
Member
 
deepspring's Avatar
 
Join Date: Jul 2002
Location: Maitland, NSW
Posts: 3,560
Default

Quote:
Originally Posted by SpaceFrog View Post
Can't retreive key from the registry. HDD died. And it's a windows 7 laptop. So the sticker is the only source of the key.

They script appears to work. And is very quick. But the Key verifiying program I am using is too slow on the PCs here at work. Takes between 1 & 30 seconds to reject a key. Unfortunately the sticker is just too worn 1 character is missing completely and about half of the letters can be misinterpretted.

This has been something I've been after for a long time, It's another tool/technique to add to the arsenal.

Good for those stickers that have a couple of characters that are hard to read.
Sorry, I didn't realise the extent of your predicament.
__________________
Follow me down the rabbit hole...
Twitter | Web |
deepspring is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 11:02 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Micron21!