Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
~ Analyzing more malware

Ahmad Bahaa 0xbahaa

😃
~ Analyzing more malware
View GitHub Profile
@0xbahaa
0xbahaa / sl4_pretty_solution.py
Created Feb 7, 2019
Commented solution for SalusLab's beginners' python challenge
View sl4_pretty_solution.py
#!/usr/bin/env python3
y = ['0b1010011', '0b1100001', '0b1101100', '0b1110101', '0b1110011', '0b1101100', '0b1100001', '0b1100010', '0b1111011', '0b1000111', '0b110000', '0b1011111', '0b110011', '0b1100001', '0b1010011', '0b1111001', '0b1011111', '0b110000', '0b1101110', '0b1011111', '0b1101101', '0b110011', '0b1111101']
integers_list = [];
#convert each element into a base-10 integer
for i in y:
_integer_value = int(str(i),2)
integers_list.append(_integer_value)
@0xbahaa
0xbahaa / sl4_one_liner.py
Last active Feb 7, 2019
A one-line solution for Saluslab's beginners' python challenge
View sl4_one_liner.py
print(''.join([chr(i) for i in [int(i,2) for i in ['0b1010011', '0b1100001', '0b1101100', '0b1110101', '0b1110011', '0b1101100', '0b1100001', '0b1100010', '0b1111011', '0b1000111', '0b110000', '0b1011111', '0b110011', '0b1100001', '0b1010011', '0b1111001', '0b1011111', '0b110000', '0b1101110', '0b1011111', '0b1101101', '0b110011', '0b1111101'] ]]))
@0xbahaa
0xbahaa / xor_decryptor.py
Last active Feb 5, 2019
Decrypt the whole file by XORing each byte with a Key
View xor_decryptor.py
#!/usr/bin/env python3
"""
__author__ = "Ahmad Bahaa"
__email__ = "0xbahaa@patch8.com"
Thanks to SalusLab for this challenge :)
"""
filename = 'encryped.zip'
out_filename = 'aaa.zip'
xor_key = 0xEE
You can’t perform that action at this time.