need some help in python
I'm currently writing a 'virus' in python,which some of the code "borrowed" are from the RAT and cmd sample in HBH.(tried to do the cmd part myself,but with no results) I think the code is starting to get somewhere, but I have some troubles to implement some features.
My python book does not provide enough details(It was O'Reilly's python pocket programming book,bought due to high desire to learn and lack of cash)
So far this are the some of the features I want in my 'virus'
a)It can now pop up command prompt windows, but I wanted the cmd window to be filled up with ASCII characters(y' know, the window pops up, and it is automatically filled with~!@#$%^&…you get my drift)
b )i want it to be self-replicating.
So if anyone knows any good python programming tutorials,books, or even better, code samples, please point it out to me.
The main reason I'm writing this virus is so that i could kill time learning programming (and getting a head start compared to the other students)while waiting for my first semester and the arrival of my laptop.
(thanks to my dad ordering it without my knowledge, i have a hunch it will be a shitty one with little capabilities of running linux, but who knows..it might be a ThinkPad)
Self replicating is pretty simple. It may be a kludge, but by combining the first system arguement (which will be yourscript.py) and the cwd (os.getcwd()) with a call to os.system('copy ",blah,blah) you can make a copy of your script. A more proper way would be to read your script as a file, and write it to another file. Not sure how this would work, with the file already being in use.
If you want to get really ambitious, find python scripts on the host computer, and append your script to them. Then you've got a real virus on your hands. Make sure you keep it under control. Better yet, import your script into theirs, and use it like that. Less noticable.
As for pop up boxes, I've got no experience there. If you get some stuff working though, I'd love to adapt some of it to my remote admin tool (in the code bank)
os.system is crude, it threads badly and consumes lots of resources, perticularly on windows.
Wherever possible you should use builtin functions, or C modules.
And yeah, i'm still working on the shell, but it's gone into a mental new phase. It's…….. well, i don't want to divulge too much, but it has a dropping tool using other exploits, and an on-the-fly builder, using py2exe or python depending on platform and arguments…..
Still in testing phase, but it's sick.
here's my creation. just uploaded it,being busy with college. Sorry it took so long.
http://rapidshare.com/files/38796053/minorirritant.html
it's in python code