Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

need some help in python


fuser's Avatar
Member
0 -1

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)


ghost's Avatar
0 0

** Calls to Richo **


richohealey's Avatar
Python Ninja
0 0

Ninja like entrance

Sure thing, pastebin the code, pm me a link.

i'll be happy to comment it, suggest better code, additions etc.

later


zi_hunter's Avatar
.:The French Ninja:.
0 0

If you post your code or a link as richo said we can help you but for the moment how can we help you? Peace.


ghost's Avatar
0 0

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)


richohealey's Avatar
Python Ninja
0 0

WELL…..

if you're going to go down that route…. use os's inbuilt file copy/move statements. Cross platform FTW… otherwise you need a whole bunch of ugly elif's on os.platform…. you don't want that.

….i've forgotten what else you wanted.

just pastebin it and PM me the link.


ghost's Avatar
0 0

Good call richo. I have a bad habit of relying on os.system too often. btw, Are you still working on your remote admin tool?


richohealey's Avatar
Python Ninja
0 0

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.


fuser's Avatar
Member
0 -1

on second thought, forget it.i actually came to realize that the code kinda sucked, just waited for someone to point it out. I'm going to delete that shit anyway.