hasherezade / pe_to_shellcode

Converts PE into a shellcode
https://www.youtube.com/watch?v=WQCiM0X11TA
BSD 2-Clause "Simplified" License
2.39k stars 433 forks source link

How to pass the args to my executeable (shellcode) #44

Open acodervic opened 9 months ago

acodervic commented 9 months ago

In windows i have some tools of exe , But i cant get them source code . It must be start with some commandline args . How to pass the args to shellcode ? Thanks ! Please help me ,Good bless you !

bird00101011 commented 5 months ago

早上好,贡献者,有很多的方式可以做到传递参数:

  1. 可以把参数放在本地文件里,当shellcode被执行时读取本地文件,是不是可以达到传递参数的作用?
  2. 还可以通过共享内存的方式,比如说,加载shellcode并执行的父进程开辟一个共享内存区域,然后加载的shellcode中读取共享内存里的数据,也可以做到,具体没试过,也许可以做吧?

目前我也在做这方面的应用,希望能帮到你。