(METHOD) How to Make Images Unique, Perfect for Social Networks!

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
As many Facebook marketers know, your landing pages are tracked by image hash. I didn't realize this and got caught by Facebook, then had my landing pages banned. Today I'll do my duty to society (kidding) and show you how to rehash any file without damaging it in any way. Note that this doesn't work for certain files that verify their authenticity, like those that exercise piracy protection (Mirror's edge, Pokemon Black, Denuvo-based games) but it will not affect any others.

Basically you just add a newline character at the end of every file to rehash it, so when Facebook or any other computer that doesn't do pixel-based verification looks at it, it seems like an entirely different file. We will do this using a Windows command prompt. Open up CMD, navigate to the directory with the file you want to re-hash with cd /d 'directoryname' where directoryname is the name of the directory you want to move to. Then, type in echo -n ' ' >> image.jpg where image.jpg is the name and file extension of the file you want to rehash.. This will add a "newline" character at the bottom of the file, making it look completely unique to computers that calculate hash values to identify images with one another.

Too complicated? I created a script that will do it for you if it's an image. First, make sure you're on Windows 7 or later. Go into your documents and create a folder called "pics". After this, put in any .jpg file and rename it "original.jpg" without the quotes. Then, go to "http://pastebin.com/6smwPi9N" without the quotes and copy and paste the script from there into Notepad (Windows key + R, then type Notepad and press enter). Go to File > Save in Notepad, and under "Save as type", click it and switch it to "All files". Then save your script as imagerehasher.bat (doesn't matter as long as it's something.bat). Then, run the script and in your "pics" directory will be 50 new images that look exactly like your old ones, yet are completely unique to anything that hash verifies.
 

uncutu

Elite Member
Joined
Aug 6, 2010
Messages
2,486
Reaction score
1,862
Nice tip. Could this technically be done by opening an image file in notepad and adding a linebreak or space to the end?
 

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
Nice tip. Could this technically be done by opening an image file in notepad and adding a linebreak or space to the end?
No, you need a text editor that doesn't re-encode into a specific charset. Take a program, open it in notepad, add a newline to the bottom of it, save it, then open it and you'll see exactly what I mean. Doesn't work. Notepad encodes the text into the charset value of the bytes when you save it, rather than leaving the code the way it is. Try using a hex editor, it may or may not work.
 

uncutu

Elite Member
Joined
Aug 6, 2010
Messages
2,486
Reaction score
1,862
No, you need a text editor that doesn't re-encode into a specific charset. Take a program, open it in notepad, add a newline to the bottom of it, save it, then open it and you'll see exactly what I mean. Doesn't work. Notepad encodes the text into the charset value of the bytes when you save it, rather than leaving the code the way it is. Try using a hex editor, it may or may not work.
I grabbed the hash associated with my image.
Edited it in notepad++. Added blackhatworld to the end of it and saved. Viewed the image and it looks identical to the unmodified version. Same with line breaks, spaces, or any other junk characters added to the end.
edc420abd7.png

Checked the hash, and it was unique from the original.
 

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
I grabbed the hash associated with my image.
Edited it in notepad++. Added blackhatworld to the end of it and saved. Viewed the image and it looks identical to the unmodified version. Same with line breaks, spaces, or any other junk characters added to the end.
edc420abd7.png

Checked the hash, and it was unique from the original.
Notepad++ is different than Notepad. It doesn't have charset encoding.
 

Wolston

Regular Member
Joined
Jan 17, 2014
Messages
278
Reaction score
98
I'm wondering what softwares like batch purifier etc do? I understand they remove the exif data. So if you modify the hash and the image still contains exif info. how does that fit into the scheme of things? Do we need to do both or does removing exif data alone enough / is rehashing alone enough?
 

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
I'm wondering what softwares like batch purifier etc do? I understand they remove the exif data. So if you modify the hash and the image still contains exif info. how does that fit into the scheme of things? Do we need to do both or does removing exif data alone enough / is rehashing alone enough?
It all depends on what you're using it for.
Common knowledge. A for an afford though.
Spelling "effort" is also common knowledge . . .
 

Wolston

Regular Member
Joined
Jan 17, 2014
Messages
278
Reaction score
98
"It all depends on what you're using it for. "

Lets say I'm downloading Instagram pics and uploading it as FB profile pics. What would work?
 

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
"It all depends on what you're using it for. "

Lets say I'm downloading Instagram pics and uploading it as FB profile pics. What would work?
I don't have enough experience in Facebook to be able to tell you specifically about profile pictures. What I do know is that most likely, Facebook images seem to deal in hash and file name. If you're botting Facebook, there are supplementary pictures you can use that seem semi-normal and don't raise flags. PM me if you want the themes of these pictures.
 

Noah Hawryshko

Senior Member
Joined
Apr 28, 2016
Messages
901
Reaction score
884
Yeah... My bad. Rehash FTW. Did I spell that correctly?
I'm just saying that rehashing may be common knowledge, but macro-rehashing and how hashes are enforced within social networks are less common knowledge. Don't whine about it.
 
Top