Page 1 of 1
how to attach a trojan file to a .txt or to a .jpeg file?
Posted: Sat Jul 17, 2010 8:59 pm
by nipundavid
i downloaded a hacking tool rar file from torrent and there were few trojans in it like love letter etc. But it is hard for me to attach these trojans to a txt doc or to a photograph.
can you guys help me?
Posted: Sat Jul 17, 2010 9:18 pm
by CodeX
A bit of python code to append a file onto another, works every time:
Code: Select all
input_filename = "me naked.jpg"
payload = "BackDoor"
output_filename = "me extra naked.jpg"
open( output_filename, "wb" ).write( open( input_filename, "rb" ).read() + open( payload, "rb" ).read())
Posted: Wed Aug 17, 2011 1:29 pm
by Master^^
CodeX wrote:A bit of python code to append a file onto another, works every time:
Code: Select all
input_filename = "me naked.jpg"
payload = "BackDoor"
output_filename = "me extra naked.jpg"
open( output_filename, "wb" ).write( open( input_filename, "rb" ).read() + open( payload, "rb" ).read())
Could you explain me how it work? Can I somehow to put my trojan into txt?
Posted: Sat Aug 20, 2011 5:16 pm
by DaymItzJack
CodeX wrote:A bit of python code to append a file onto another, works every time:
Code: Select all
input_filename = "me naked.jpg"
payload = "BackDoor"
output_filename = "me extra naked.jpg"
open( output_filename, "wb" ).write( open( input_filename, "rb" ).read() + open( payload, "rb" ).read())
Worked for me on my last ex-girlfriend.
Posted: Sat Aug 20, 2011 10:43 pm
by CodeX
but of course, I only serve the finest malware :3