malwaredllc / byob

An open-source post-exploitation framework for students, researchers and developers.
https://byob.dev
GNU General Public License v3.0
8.95k stars 2.12k forks source link

I cannot create an executable windows x32 or linux amd64 etc. #279

Closed MiChaelinzo closed 4 years ago

MiChaelinzo commented 4 years ago

I'm using web-gui and can't create executable for windows and linux but I can with Python easily this what appears in the console when i try to make one

byob
mrsoms commented 4 years ago

Same here Also python script keeps giving me connection timed out

dontbanmeplz commented 4 years ago

It doesn’t work If you can fix it then fix it If you cant the too bad Make your own exe and Linux executables

ricko2991 commented 4 years ago

So what you mean is that after I create the payload in python format I have to compile it manually. For example when the python payload has been created i'm creating an executable file using the pyinstaller manually. like that?

dontbanmeplz commented 4 years ago

Yes

MiChaelinzo commented 4 years ago

It doesn’t work If you can fix it then fix it If you cant the too bad Make your own exe and Linux executables

wtf is this ??, we are here in the issues section to get help

dontbanmeplz commented 4 years ago

I’m just trying to say that i cant fix it. But i will make a page in the wiki telling you how @MiChaelinzo @ricko2991

dontbanmeplz commented 4 years ago

I’m sorry for being rude

mrsoms commented 4 years ago

Don't worry Please tell us how we can compile it to executable

dontbanmeplz commented 4 years ago

On windows you can use WSL https://ubuntu.com/wsl and pyinstaller to make Linux packages and https://www.py2exe.org/ to make exe files. On Linux you can only make Linux executables unless you do some stuff with docker and wine https://github.com/cdrx/docker-pyinstaller

mrsoms commented 4 years ago

Thank you Which do you recommend we use CLI or WEB-GUI?

dontbanmeplz commented 4 years ago

Web GUI is awesome so that

mrsoms commented 4 years ago

Okay thanks I use Ubuntu on virtual box. When I send a python cli to my windows OS it gives me connection timed out

dontbanmeplz commented 4 years ago

Because your Ubuntu box is not connected to the internet use wsl becuase it is basically part of your machine

mrsoms commented 4 years ago

Windows susbstyem Linux Okay With that I will be able to connect to other pcs in my local network?

dontbanmeplz commented 4 years ago

Yes and the rest of the network as well. You are running a Linux box on your computer that is basically sharing the system resources

mrsoms commented 4 years ago

Man you are best Thank You very much 🙏👍👍

mrsoms commented 4 years ago

What's your discord account so that I contact you if I have a problem

dontbanmeplz commented 4 years ago

Chis27#9412

dontbanmeplz commented 4 years ago

Your welcome

mrsoms commented 4 years ago

Your username and tag error I did it in small letters too

dontbanmeplz commented 4 years ago

Sorry no 27

ricko2991 commented 4 years ago

ok. i want to test it to run in windows machine. Can i run web-gui in windows machine? If i use docker and modify the startup.sh into python code to install dependency. Thanks

dontbanmeplz commented 4 years ago

No docker will only work on linux i think or it would be some MAJOR changes to startup.sh and changing it to startup.exe ot startup.bat

dontbanmeplz commented 4 years ago

Maybe ill work on that when i get some time with @malwaredllc

mrsoms commented 4 years ago

I have sent you a request. So with the WSL everything will work now

ricko2991 commented 4 years ago

Maybe ill work on that when i get some time with @malwaredllc

This is my code to change the startup.sh into python script to install docker depency and python dependency. But when i open the web browser to run the GUI, the browser can't show the webGUI-page. But i will waiting for add this features in windows.

script

import time import os

print("is creating its docker file") os.chdir("C:\Users\ASUS\source\repos\Botnet\byob\web-gui\docker-pyinstaller1")

os.system('cd C:\Users\ASUS\source\repos\Botnet\byob\web-gui\docker-pyinstaller1')

os.system('dir') time.sleep(5) os.system('cls') print('already entered in the directory') os.system('docker build -f Dockerfile-py3-amd64 -t nix-amd64 . ') os.system('docker build -f Dockerfile-py3-i386 -t nix-i386 . ') os.system('docker build -f Dockerfile-py3-win32 -t win-x32 . ') print('done') os.chdir('C:\Users\ASUS\source\repos\Botnet\byob\web-gui') print('run python3') os.system('python3 run.py')

dontbanmeplz commented 4 years ago

Right now i am turning the startup.sh into startup.exe so no worrys

MiChaelinzo commented 4 years ago

sorry i wasn't thorough this is the source of my errors etc...

byobs
dontbanmeplz commented 4 years ago

The docker flies don’t work

MiChaelinzo commented 4 years ago

The docker flies don’t work

yeah fixed it, thanks

Sanket-kumbhar commented 4 years ago

The docker flies don’t work

yeah fixed it, thanks hey can you explain me the fix

MiChaelinzo commented 4 years ago

The docker flies don’t work

yeah fixed it, thanks hey can you explain me the fix

run in root for docker or either change file permission if the folder/file

MP3Martin commented 3 years ago

Okay thanks I use Ubuntu on virtual box. When I send a python cli to my windows OS it gives me connection timed out @mrsoms

Don't use VirtualMachine. I think Ubuntu for windows is better. Am using it. I doesnt solve your problem but it isn't emulating anythingso it uses less memory. Download Ubuntu for windows

Baca666 commented 2 years ago

It doesn’t work If you can fix it then fix it If you cant the too bad Make your own exe and Linux executables

I bought new laptop, after some time I copied the byob folder from my old laptop to new one, installed docker, runned byob, tried to make .exe for windows x32 and it worked. It created the file. Idk why or how it worked, but it did. Its not bcs of update cause its and old file. I really dont know

AaronRohrbacher commented 2 years ago

If running WSL, docker desktop is easiest. The b' ' thing you were seeing was the script trying to use docker but failing. I've gotten as far as the web-gui creating win32 executables, but they do not connect to any server, and I don't understand the underlying python- so agreed, probably best to just use the client.py/server.py to generate python, then compile...