![]() |
|
Python Corrupter - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Python Corrupter (/Thread-Python-Corrupter) |
Python Corrupter - casperandersen - 09-21-2018 Hey guys, anyone have an idea of how i would make a python program that corrupts any filetype i give it? just like this website: https://corrupt-a-file.net/ RE: Python Corrupter - Cr3aTor - 09-21-2018 (09-21-2018, 09:12 AM)oxnan Wrote: Hey guys, anyone have an idea of how i would make a python program that corrupts any filetype i give it? I would recommend to do it in C/C++ (maybe even asm?) since you probably will need to deal with low-level stuff. I never tried this so that's definitely one new little project I will try to make ! My question is if you want to be able to rebuild it after the corrupting process? If not: I'm thinking that you can achieve this by messing up random bytes in the file (switching them, deleting them). Else: Now this will need to be based on each file structure (PE, ELF, JPG, ZIP, etc) so that you can mess stuff in an organized way and after be able to rebuild it. Basically just undo the precedent process. Now those are just my thoughts, idk if this will work or not. But maybe it will help you. RE: Python Corrupter - casperandersen - 09-21-2018 i have no intention of actually reconstucting them, i just wanna break stuff, but thanks for your suggestion RE: Python Corrupter - casperandersen - 09-21-2018 I have only ever made small stuff in asm, like a small OS, but never actually done much else, so does anyone know if i would be able to compile the asm programs into executables/binaries? RE: Python Corrupter - Cr3aTor - 09-21-2018 (09-21-2018, 09:25 AM)oxnan Wrote: I have only ever made small stuff in asm, like a small OS, but never actually done much else, so does anyone know if i would be able to compile the asm programs into executables/binaries? Of course you can. You need to make an object file using a linker and then use a compiler to make an executable. RE: Python Corrupter - casperandersen - 09-21-2018 okay i will take a look at it and probably delete this thread and create a new one in the assembler forum
RE: Python Corrupter - Cr3aTor - 09-21-2018 (09-21-2018, 09:40 AM)oxnan Wrote: okay But you don't need to make it full in asm necessarily, I was saying that if you need to work with asm for some reason, you can do it. But C/C++ can support asm so you can write it directly in your C/C++ program. RE: Python Corrupter - casperandersen - 09-21-2018 yeah, thats the thing. I dont know c/c++ so i really dont know if i am going to know where to start. Would you recommend to just learn one of them? RE: Python Corrupter - Cr3aTor - 09-21-2018 (09-21-2018, 09:47 AM)oxnan Wrote: yeah, thats the thing. I dont know c/c++ so i really dont know if i am going to know where to start. Would you recommend to just learn one of them? Yeah, they're pretty mandatory when it comes to malware, crypters, rootkits, RAT's, etc. And not just that, but if you need to fuck around with memory, file structures and things like that you will need it. (You can do this with python also, but don't forget that python is created in C/C++ xD) You will definitely have a better understanding on how computers work if you're working with low-level programming languages. |