Open VirusEmp opened 5 years ago
─[root@parrot]─[/home/user] └──╼ #ls cupp Downloads Loki Public trape urllib.request Desktop EmbedInHTML MITMf SocialFish ufonet Videos Documents Evil-Droid Music stash.sqlite unicorn xerxes DoThis EvilURL Pictures Templates urllib.error ┌─[root@parrot]─[/home/user] └──╼ #cd Loki ┌─[root@parrot]─[/home/user/Loki] └──╼ #ls builder LICENSE README.md Screenshots templates lib loki.py requirements.txt static ┌─[root@parrot]─[/home/user/Loki] └──╼ #cd builder ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #ls bot builder.py lib ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py usage: builder.py [-h] -i IP -p PORTS -n NAME [-d DELAY] [-w WAIT] [-t TYPE] [-ic ICON] [-hd] [-ap] builder.py: error: the following arguments are required: -i/--ip, -p/--ports, -n/--name ┌─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py -h usage: builder.py [-h] -i IP -p PORTS -n NAME [-d DELAY] [-w WAIT] [-t TYPE] [-ic ICON] [-hd] [-ap]
optional arguments: -h, --help show this help message and exit -i IP, --ip IP the ip of the C&C server. Example: -i 127.0.0.1 -p PORTS, --ports PORTS the port of the C&C server. Example: -p 8080 -n NAME, --name NAME the name of the output file. Example: -n myvirus -d DELAY, --delay DELAY time in seconds before upacking. Example: -d 17 -w WAIT, --wait WAIT time in seconds before calling C&C. Example: -w 17 -t TYPE, --type TYPE the output type. Example: -t python Example: -t exe -ic ICON, --icon ICON the output type. Example: -ic FILE.ico Example: -ic FILE.exe -hd, --hide hide the executable when executed. Example: --hide -ap, --autopersist Auto persist when executed. Example: -ap ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py -i 127.0.0.1 -p 8080 -n Virus -t exe 80 INFO: PyInstaller: 3.4 80 INFO: Python: 3.6.7 81 INFO: Platform: Linux-4.18.0-parrot8-amd64-x86_64-with-Parrot-4.4-stable 81 INFO: wrote /home/user/Loki/builder/Virus.spec 156 INFO: UPX is available. 160 INFO: Extending PYTHONPATH with paths ['/home/user/Loki/builder/bot', '/home/user/Loki/builder'] 160 INFO: checking Analysis 160 INFO: Building Analysis because Analysis-00.toc is non existent 161 INFO: Initializing module dependency graph... 168 INFO: Initializing module graph hooks... 172 INFO: Analyzing base_library.zip ... 6512 INFO: running Analysis Analysis-00.toc 6568 INFO: Caching module hooks... 6576 INFO: Analyzing /home/user/Loki/builder/bot/Virus.py 7463 INFO: Processing pre-safe import module hook six.moves 14804 INFO: Loading module hooks... 14804 INFO: Loading module hook "hook-xml.py"... 14973 INFO: Loading module hook "hook-pydoc.py"... 14974 INFO: Loading module hook "hook-encodings.py"... 15081 INFO: Loading module hook "hook-cryptography.py"... 15470 INFO: Loading module hook "hook-certifi.py"... 15474 INFO: Loading module hook "hook-Xlib.py"... 15904 INFO: Looking for ctypes DLLs 16482 INFO: Analyzing run-time hooks ... 16507 INFO: Looking for dynamic libraries 17233 INFO: Looking for eggs 17233 INFO: Python library not in binary dependencies. Doing additional searching... 17338 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0 17353 INFO: Warnings written to /home/user/Loki/builder/build/Virus/warn-Virus.txt 17438 INFO: Graph cross-reference written to /home/user/Loki/builder/build/Virus/xref-Virus.html 17470 INFO: checking PYZ 17471 INFO: Building PYZ because PYZ-00.toc is non existent 17471 INFO: Building PYZ (ZlibArchive) /home/user/Loki/builder/build/Virus/PYZ-00.pyz 18532 INFO: Building PYZ (ZlibArchive) /home/user/Loki/builder/build/Virus/PYZ-00.pyz completed successfully. 18547 INFO: checking PKG 18548 INFO: Building PKG because PKG-00.toc is non existent 18548 INFO: Building PKG (CArchive) PKG-00.pkg 24707 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully. 24710 INFO: Bootloader /usr/local/lib/python3.6/dist-packages/PyInstaller/bootloader/Linux-64bit/run 24710 INFO: checking EXE 24711 INFO: Building EXE because EXE-00.toc is non existent 24711 INFO: Building EXE from EXE-00.toc 24711 INFO: Appending archive to ELF section in EXE /home/user/Loki/builder/dist/Virus 25188 INFO: Building EXE from EXE-00.toc completed successfully. Traceback (most recent call last): File "builder.py", line 98, in executor.start() File "builder.py", line 82, in start self.compile_bot() File "builder.py", line 68, in compile_bot for data in File.read(self.bot_compiled): File "/home/user/Loki/builder/lib/file.py", line 11, in read with open(file, 'rb' if _bytes else 'rt') as f: FileNotFoundError: [Errno 2] No such file or directory: 'dist/Virus.exe'
─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #python builder.py -i 127.0.0.1 -p 8080 -n Virus -t exe Please install Pyinstaller
┌─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #pip install Pyinstaller==2.1 Collecting Pyinstaller==2.1 Downloading https://files.pythonhosted.org/packages/c3/a3/d50648bc99a8d5d6c533fc5c1101cc18014d0782e7ddbe9744ad2d56ad49/PyInstaller-2.1.tar.gz (4.8MB) 100% |████████████████████████████████| 4.8MB 943kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-bg8qxytr/Pyinstaller/setup.py", line 18, in from PyInstaller import get_version File "/tmp/pip-install-bg8qxytr/Pyinstaller/PyInstaller/init.py", line 32, in from PyInstaller import compat File "/tmp/pip-install-bg8qxytr/Pyinstaller/PyInstaller/compat.py", line 129 if sys.maxint > 2L ** 32: ^ SyntaxError: invalid syntax
My steps
─[root@parrot]─[/home/user] └──╼ #ls cupp Downloads Loki Public trape urllib.request Desktop EmbedInHTML MITMf SocialFish ufonet Videos Documents Evil-Droid Music stash.sqlite unicorn xerxes DoThis EvilURL Pictures Templates urllib.error ┌─[root@parrot]─[/home/user] └──╼ #cd Loki ┌─[root@parrot]─[/home/user/Loki] └──╼ #ls builder LICENSE README.md Screenshots templates lib loki.py requirements.txt static ┌─[root@parrot]─[/home/user/Loki] └──╼ #cd builder ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #ls bot builder.py lib ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py usage: builder.py [-h] -i IP -p PORTS -n NAME [-d DELAY] [-w WAIT] [-t TYPE] [-ic ICON] [-hd] [-ap] builder.py: error: the following arguments are required: -i/--ip, -p/--ports, -n/--name ┌─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py -h usage: builder.py [-h] -i IP -p PORTS -n NAME [-d DELAY] [-w WAIT] [-t TYPE] [-ic ICON] [-hd] [-ap]
optional arguments: -h, --help show this help message and exit -i IP, --ip IP the ip of the C&C server. Example: -i 127.0.0.1 -p PORTS, --ports PORTS the port of the C&C server. Example: -p 8080 -n NAME, --name NAME the name of the output file. Example: -n myvirus -d DELAY, --delay DELAY time in seconds before upacking. Example: -d 17 -w WAIT, --wait WAIT time in seconds before calling C&C. Example: -w 17 -t TYPE, --type TYPE the output type. Example: -t python Example: -t exe -ic ICON, --icon ICON the output type. Example: -ic FILE.ico Example: -ic FILE.exe -hd, --hide hide the executable when executed. Example: --hide -ap, --autopersist Auto persist when executed. Example: -ap ┌─[root@parrot]─[/home/user/Loki/builder] └──╼ #python3 builder.py -i 127.0.0.1 -p 8080 -n Virus -t exe 80 INFO: PyInstaller: 3.4 80 INFO: Python: 3.6.7 81 INFO: Platform: Linux-4.18.0-parrot8-amd64-x86_64-with-Parrot-4.4-stable 81 INFO: wrote /home/user/Loki/builder/Virus.spec 156 INFO: UPX is available. 160 INFO: Extending PYTHONPATH with paths ['/home/user/Loki/builder/bot', '/home/user/Loki/builder'] 160 INFO: checking Analysis 160 INFO: Building Analysis because Analysis-00.toc is non existent 161 INFO: Initializing module dependency graph... 168 INFO: Initializing module graph hooks... 172 INFO: Analyzing base_library.zip ... 6512 INFO: running Analysis Analysis-00.toc 6568 INFO: Caching module hooks... 6576 INFO: Analyzing /home/user/Loki/builder/bot/Virus.py 7463 INFO: Processing pre-safe import module hook six.moves 14804 INFO: Loading module hooks... 14804 INFO: Loading module hook "hook-xml.py"... 14973 INFO: Loading module hook "hook-pydoc.py"... 14974 INFO: Loading module hook "hook-encodings.py"... 15081 INFO: Loading module hook "hook-cryptography.py"... 15470 INFO: Loading module hook "hook-certifi.py"... 15474 INFO: Loading module hook "hook-Xlib.py"... 15904 INFO: Looking for ctypes DLLs 16482 INFO: Analyzing run-time hooks ... 16507 INFO: Looking for dynamic libraries 17233 INFO: Looking for eggs 17233 INFO: Python library not in binary dependencies. Doing additional searching... 17338 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0 17353 INFO: Warnings written to /home/user/Loki/builder/build/Virus/warn-Virus.txt 17438 INFO: Graph cross-reference written to /home/user/Loki/builder/build/Virus/xref-Virus.html 17470 INFO: checking PYZ 17471 INFO: Building PYZ because PYZ-00.toc is non existent 17471 INFO: Building PYZ (ZlibArchive) /home/user/Loki/builder/build/Virus/PYZ-00.pyz 18532 INFO: Building PYZ (ZlibArchive) /home/user/Loki/builder/build/Virus/PYZ-00.pyz completed successfully. 18547 INFO: checking PKG 18548 INFO: Building PKG because PKG-00.toc is non existent 18548 INFO: Building PKG (CArchive) PKG-00.pkg 24707 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully. 24710 INFO: Bootloader /usr/local/lib/python3.6/dist-packages/PyInstaller/bootloader/Linux-64bit/run 24710 INFO: checking EXE 24711 INFO: Building EXE because EXE-00.toc is non existent 24711 INFO: Building EXE from EXE-00.toc 24711 INFO: Appending archive to ELF section in EXE /home/user/Loki/builder/dist/Virus 25188 INFO: Building EXE from EXE-00.toc completed successfully. Traceback (most recent call last): File "builder.py", line 98, in
executor.start()
File "builder.py", line 82, in start
self.compile_bot()
File "builder.py", line 68, in compile_bot
for data in File.read(self.bot_compiled):
File "/home/user/Loki/builder/lib/file.py", line 11, in read
with open(file, 'rb' if _bytes else 'rt') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'dist/Virus.exe'
then i try running with python2 and it says
─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #python builder.py -i 127.0.0.1 -p 8080 -n Virus -t exe Please install Pyinstaller
good..then did that using
┌─[✗]─[root@parrot]─[/home/user/Loki/builder] └──╼ #pip install Pyinstaller==2.1 Collecting Pyinstaller==2.1 Downloading https://files.pythonhosted.org/packages/c3/a3/d50648bc99a8d5d6c533fc5c1101cc18014d0782e7ddbe9744ad2d56ad49/PyInstaller-2.1.tar.gz (4.8MB) 100% |████████████████████████████████| 4.8MB 943kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-bg8qxytr/Pyinstaller/setup.py", line 18, in
from PyInstaller import get_version
File "/tmp/pip-install-bg8qxytr/Pyinstaller/PyInstaller/init.py", line 32, in
from PyInstaller import compat
File "/tmp/pip-install-bg8qxytr/Pyinstaller/PyInstaller/compat.py", line 129
if sys.maxint > 2L ** 32:
^
SyntaxError: invalid syntax
Now i read an issue in which you said the exe file should be created in windows environment.
i just love my Parrot..please make it work in parrot.
Nice job..real good work.
suggestions:i think you should add other browsers besides chrome.
Thanks