Dobby233Liu / MEMZPayloads

Test.
1 stars 1 forks source link

Building #1

Closed FlappyDude2003 closed 5 years ago

FlappyDude2003 commented 5 years ago

Hey man, can i now build those .c files?

Dobby233Liu commented 5 years ago

Yes Be sure to use GNU make and Mingw-w64 i686 gcc toolkit

FlappyDude2003 commented 5 years ago

i know what gcc is but what is gnu make?

Dobby233Liu commented 5 years ago

Anyway, it's just make.

FlappyDude2003 commented 5 years ago

so i just compile make?

Dobby233Liu commented 5 years ago

Yes

Dobby233Liu commented 5 years ago

Forget, also install python2

FlappyDude2003 commented 5 years ago

i’m confused, explain in steps on how to compile a payload (sorry)

Dobby233Liu commented 5 years ago

sorry, this is wip. using make you can only build all of the payloads to /Build/Bin

Dobby233Liu commented 5 years ago

But you can define the PL2 macro somewhere

FlappyDude2003 commented 5 years ago

will they all be separate executables?

Dobby233Liu commented 5 years ago

Of course (but their size will be same, it's a desired effect)

FlappyDude2003 commented 5 years ago

sooo what do i use to compile make?

Dobby233Liu commented 5 years ago

Compile the make program? There are many prebuilts for make

FlappyDude2003 commented 5 years ago

noooo tell me the exact steps on how to compile the payloads. i’m not very good with this stuff (i’m sorry)

FlappyDude2003 commented 5 years ago

can i use cygwin or what do i have to use to run it?

On Sat, Jun 1, 2019 at 7:34 PM Liu-Wen-Yuan notifications@github.com wrote:

Then just run make in the terminal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Dobby233Liu/MEMZPayloads/issues/1?email_source=notifications&email_token=AG74CSOCJCD72IQJA5JJQD3PYMIQVA5CNFSM4HSATM72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXLFOQ#issuecomment-497988282, or mute the thread https://github.com/notifications/unsubscribe-auth/AG74CSID33SLYW5NBAYGMLDPYMIQVANCNFSM4HSATM7Q .

Dobby233Liu commented 5 years ago

yes, you can use cygwin or msys2

FlappyDude2003 commented 5 years ago

i get an error on cygwin, its this "make2.sh: line 2: make: command not found" help?

Dobby233Liu commented 5 years ago

i get an error on cygwin, its this "make2.sh: line 2: make: command not found" help?

I told you install make

FlappyDude2003 commented 5 years ago

i realized that lol ill let you know if i get any more errors, i should install python too right?

Dobby233Liu commented 5 years ago

i realized that lol ill let you know if i get any more errors, i should install python too right?

yes, install python2

FlappyDude2003 commented 5 years ago

i got error 127, also got tons of: /bin/sh: line 2: gcc: command not found

Dobby233Liu commented 5 years ago

i got error 127, also got tons of: /bin/sh: line 2: gcc: command not found

https://github.com/Dobby233Liu/MEMZPayloads/issues/1#issuecomment-497986642

FlappyDude2003 commented 5 years ago

i reinstalled it with all the required packages and got tons of these errors: "gcc: error: unrecognized command line option ‘-municode’" and at the end i got error 1

Dobby233Liu commented 5 years ago

i messed it up. should not use cygwin, like the original memz

FlappyDude2003 commented 5 years ago

what should i use instead?

Dobby233Liu commented 5 years ago

Directly install mingw-w64 and python2 on your Windows machine is a better choice.

FlappyDude2003 commented 5 years ago

so should i install python from the official website and where do i get mingw? links?

Dobby233Liu commented 5 years ago

google it (hint: on sourceforge) https://sourceforge.net/projects/mingw-w64/

FlappyDude2003 commented 5 years ago

i got python 3.7.3 and python launcher installed from the official website and i downloaded mingw and am installing it.

Dobby233Liu commented 5 years ago

no, python2

FlappyDude2003 commented 5 years ago

so you want me to get an old version? and for mingw what threads do i use and what exception?

Dobby233Liu commented 5 years ago

yes, python2 (defined in the original memz). for mingw did quite recommend win32 version not posix.

FlappyDude2003 commented 5 years ago

okay so i am using x86_x64 architecture, win32 threads, and seh as the exception. Is that correct? also im using choco to download python2 is that the correct way?

Dobby233Liu commented 5 years ago

both yes (but seem like original memz uses i686 arch, nvm)

FlappyDude2003 commented 5 years ago

so do you recommend i use i686 or x86x64? or does it not really matter?

Dobby233Liu commented 5 years ago

no matter edit: no

FlappyDude2003 commented 5 years ago

alright, python 2 is finishing up installing and i will start mingw now.

FlappyDude2003 commented 5 years ago

ok so everything is installed. what now?

Dobby233Liu commented 5 years ago

run make in the project dir

FlappyDude2003 commented 5 years ago

so do i just type "make2.sh"?

Dobby233Liu commented 5 years ago

no, make. no make2 anymore, because its for debug

FlappyDude2003 commented 5 years ago

so tell me the exact command i need to use. because cmd says "'make' is not recognized as an internal or external command, operable program or batch file."

Dobby233Liu commented 5 years ago

so tell me the exact command i need to use. because cmd says "'make' is not recognized as an internal or external command, operable program or batch file."

dl https://sourceforge.net/projects/gnuwin32/files/make/3.81/make-3.81.exe/download, then you can use make

FlappyDude2003 commented 5 years ago

ok i downloaded make so what now

Dobby233Liu commented 5 years ago

https://github.com/Dobby233Liu/MEMZPayloads/issues/1#issuecomment-498001517

FlappyDude2003 commented 5 years ago

yet again, error 1. C:\Program Files (x86)\GnuWin32\bin>make File not found - .c File not found - .h mkdir -p Build mkdir -p Build/Bin The syntax of the command is incorrect. make: *** [Build/Bin] Error 1

Dobby233Liu commented 5 years ago

I added a alternative Makefile that fit cmd standards. pull out the new version and make -C <the path of Makefile.Win32>

FlappyDude2003 commented 5 years ago

I got this: C:\Program Files (x86)\GnuWin32\bin>make -C "C:\Program Files (x86)\GnuWin32\bin" File not found - .c File not found - .h make: Entering directory C:/Program Files (x86)/GnuWin32/bin' mkdir -p Build mkdir -p Build/Bin The syntax of the command is incorrect. make: *** [Build/Bin] Error 1 make: Leaving directoryC:/Program Files (x86)/GnuWin32/bin'

Dobby233Liu commented 5 years ago

ping @FlappyDude2003

FlappyDude2003 commented 5 years ago

@Dobby233Liu still getting error 1? what does this mean?! C:\Program Files (x86)\GnuWin32\bin>make -C "C:\Program Files (x86)\GnuWin32\bin" File not found - .c File not found - .h make: Entering directory C:/Program Files (x86)/GnuWin32/bin' mkdir -p Build mkdir -p Build/Bin The syntax of the command is incorrect. make: *** [Build/Bin] Error 1 make: Leaving directoryC:/Program Files (x86)/GnuWin32/bin'