Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys,re,binascii
- def decode():
- """Converts Metaspoit Ruby Script byte code to BIN files"""
- (open(sys.argv[1][:-2]+'bin','wb')).write(binascii.a2b_hex(''.join(re.findall(r'\\x(\w\w)',''.join(open(sys.argv[1],'r').readlines())))))
- def main():
- if len(sys.argv) < 2:
- print 'Proper syntax requires at least one argument...exiting'
- sys.exit()
- decode()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement