1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How Can I Automate This Super Simple Task?

Discussion in 'BlackHat Lounge' started by Noah Hawryshko, Aug 11, 2016.

  1. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    Hi again BlackHatWorld, I have the stupidest problem in the world and I can't figure out how to solve it. What I need is a program that will take an image and save a copy of that image exactly as it is with 1 random pixel changed into a random color so that the hash is different. I need to able to spawn copies of this image very quickly so the process would need to be scripted or automated.

    Can anybody think of a way to do this? It's so easy to do in my mind but I can't find any program that will do it.
     
  2. jamie3000

    jamie3000 Supreme Member

    Joined:
    Jun 30, 2014
    Messages:
    1,372
    Likes Received:
    625
    Occupation:
    Finance coder looking for semi-retirement
    Location:
    uk
    There are command line program that can do that. Could always add a space watermark lol?
     
  3. Nut-Nights

    Nut-Nights Jr. VIP Jr. VIP

    Joined:
    Jun 20, 2013
    Messages:
    5,296
    Likes Received:
    3,375
    Location:
    Hell
    Home Page:
    You need to get custom bot. i don't think there is any bot and software available for this. If anyone knows pls share.
     
    • Thanks Thanks x 1
  4. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    Can you specify which program could do this? I looked around and couldn't find one. I'd just do a mass hex-edit, but I don't want to damage the file itself by changing a variable that isn't a pixel, so hex editing isn't an option.
     
  5. PBNSurprise

    PBNSurprise Jr. VIP Jr. VIP

    Joined:
    Jul 22, 2015
    Messages:
    1,359
    Likes Received:
    621
    Gender:
    Male
    Occupation:
    Amazon
    You could probably do it with iMacros
     
  6. JJJackson

    JJJackson Jr. VIP Jr. VIP

    Joined:
    May 21, 2016
    Messages:
    432
    Likes Received:
    270
    Occupation:
    Gatekeeper
    Home Page:
    If you know how to edit hex, you can easily add some bytes
     
  7. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    I gave up on looking, so I decided to make a program myself that does it. Anyone can use it also as long as they're running Windows. Here's the link to the program and the dependencies:

    Download: http://s000.tinyupload.com/index.php?file_id=14381417051892248526

    Virustotal: https://www.virustotal.com/en/file/...db2c0acce9c08469be2ca032/analysis/1470953172/

    To run it, download this .zip file and extract "Image Rehasher.bat" to a local folder. Next, run the included installer and install ImageMagick 6.9.5 on your system.. This program has command line dependencies that Image Rehasher relies on, and Image Rehasher will not function without a working installation of ImageMagick 6.9.5.

    If your image isn't a .jpg, convert it to a .jpg first. Next, name it "image.jpg" and put it in the same directory as the .bat file. After this is all set up, click on and run Image Rehasher.bat and the program will create a specified number of copies of "image.jpg", each with 1 randomly selected pixel changed into 1 randomly selected color per copy. This makes all generated images have completely unique hashes at the pixel level, and thus stops any image upload service that has EXIF or end-of-file data strippers from removing non-pixel data and discovering that all files are exactly the same.

    Image Rehasher works on any .jpg image with a resolution of at least 100 x 100. I'll probably share this in a dedicated thread in a bit, because I only assume others are looking for this type of tool also.

    I was going to use hex to rehash these images, but hex-editing variables randomly sometimes corrupts pictures, so I had to make sure I was always editing pixels.
     
    • Thanks Thanks x 6
  8. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
  9. patadeperro

    patadeperro Registered Member

    Joined:
    Jul 5, 2011
    Messages:
    63
    Likes Received:
    18
    Excuse my ignorance, but I am more intrigued about what are you using this for?
     
  10. Nattsurfaren

    Nattsurfaren Regular Member

    Joined:
    Apr 12, 2010
    Messages:
    449
    Likes Received:
    49
    I would use a movie editor and filters.
     
  11. KenTZ

    KenTZ Regular Member

    Joined:
    Jan 28, 2015
    Messages:
    418
    Likes Received:
    223
    Using ImageMagick to resize images in bulk by about 1% should achieve the same result.

    It's not all that user-friendly though, so you'll have some reading to do.
     
  12. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    It's so that Facebook can't correlate my landing pages by hash.
     
    • Thanks Thanks x 1
  13. NicholasVegas

    NicholasVegas Regular Member

    Joined:
    Jul 5, 2016
    Messages:
    243
    Likes Received:
    112
    Gender:
    Male
    Occupation:
    Freelancer
    Location:
    45N 21E
    Home Page:
    Sound like you are doing something right. But, I still don't get it... You are going to spam on facebook, and where exactly do these "unique" pictures come into play?
     
  14. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    In short, Facebook tracks almost each and every thing that ever happens on their network against a link spam detection system.

    For the CPA offers that I'm doing, I have hundreds of landing pages that I need to make sure aren't associated with one another in any way. This is because Facebook link spam detection works sort of like a "net", with the very middle being the link that gets flagged as spam and deleted, and the outer parts being each and every link that is related to the spam link in any way.

    The "outer net", or things which bear any resemblence to the spam link that was flagged and deleted, are instantly put on stricter watch by Facebook's algorithms, so any corollary that one landing page may have with another can lead to a banning of all landing pages if they're made with the same common elements, like images with the exact same hash.

    In my testing, I've found that og:title and og:description probably aren't part of Facebook's link detection algorithms because I have hundreds of landing pages with the exact same title and description. However, image does matter. You can not use an image with the same hash over hundreds of landing pages and expect Facebook's spam link filter to not pick up on the fact that one image is being used in hundreds of spam links. Once the links are connected together by Facebook's "net", they're all gone. Game over.
     
    • Thanks Thanks x 1
    Last edited: Aug 12, 2016
  15. NicholasVegas

    NicholasVegas Regular Member

    Joined:
    Jul 5, 2016
    Messages:
    243
    Likes Received:
    112
    Gender:
    Male
    Occupation:
    Freelancer
    Location:
    45N 21E
    Home Page:
    Wow! Thank you. That was eye opening. I would imagine you own one domain, but use separate sub-domains for each landing page clone?
     
  16. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    No problem!

    Regarding subnets, Facebook's "net", as I've mentioned earlier, will ban the domain as a whole once the subdomains have been banned enough. When the subdomain is banned, everything connected (like the top-level domain) is put on strict watch, so a coupl more banned subnets and the whole top-level URL will be blocked from FB. Subdomaining does help greatly, but you'll always need many domains once you start spamming on a large scale.

    Personally, I use whitelisted blogging subdomains. Whitelisted subdomains are things like Weebly, Blogger, etc, that will never be banned at the domain-level because they represent largely legitimate traffic sources. So if I have 100 blogger domains and 50 of them get banned as a result of my stupidity, that will never turn into a ban on all my Blogger domains because the top-level Blogger domain (blogspot.com, from which blogname.blogspot.com sites come from) will never get banned due to it's whitelist with Facebook and hundreds of thousands of legitimate blogs.
     
    • Thanks Thanks x 3
    Last edited: Aug 12, 2016
  17. PBNSurprise

    PBNSurprise Jr. VIP Jr. VIP

    Joined:
    Jul 22, 2015
    Messages:
    1,359
    Likes Received:
    621
    Gender:
    Male
    Occupation:
    Amazon
    Hey I just downloaded your bot and it works fine, i have the duplicate images. Will this work to bypass instagram banning accs that use the same profile pic? I noticed that when several accs have the same main pic they instantly get banned, I believe this should work around that but not sure
     
  18. Fragmaster

    Fragmaster Jr. VIP Jr. VIP

    Joined:
    Apr 3, 2016
    Messages:
    726
    Likes Received:
    1,020
    Gender:
    Male
    Yes Noah , there are domains with immunity :) , wordpress.com for example.

    PBNSurprise , always modify picture, because if you download from google a pic there is probability someone else has it too!