Jump to content
Jako

[Python] Pony gate extractor

Recommended Posts

Posted
import argparse
import validators

def get_gate(f):
   gate = ''
   pe = f.read()
   print len(pe)
   if len(pe) >= 63000 and len(pe) <= 100000:
       i = pe.find('YUIPWDFILE0YUIPKDFILE0YUICRYPTED0YUI1.0') - 3

       if i > 0:
           while pe[i] != '\x00' and i >= 0:
               gate = pe[i] + gate
               i   -= 1

   return gate

parser = argparse.ArgumentParser(description='Extract Pony binary gate.')
parser.add_argument('FILE', type=argparse.FileType('rb'), help='Pony binary')
args = parser.parse_args()

gate = get_gate(args.FILE)

if validators.url(gate):
   print gate
else:
print 'Gate not found!'

VB6 version:

https://github.com/Xyl2k/Pony-gate-extractor

 

demo:

http://cybercrime-tracker.net/ccpm.php

  • Upvote 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...