Close #106 - XXE-Fuzzing / Grep PHP Auditing

This commit is contained in:
g0tmi1k
2018-03-21 17:19:17 +00:00
parent c524f768bf
commit 5278477235
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
# Auditing php source code with grep
## XSS
`grep -Ri "echo" *`
`grep -Ri "\$_" * | grep "echo"`
`grep -Ri "\$_GET" * | grep "echo"`
`grep -Ri "\$_POST" * | grep "echo"`
`grep -Ri "\$_REQUEST" * | grep "echo"`
- - -
## SQL Injection
`grep -Ri "$sql" *`
`grep -RI "mysqli(" *`
`grep -Ri "pdo(" * `
- - -
## File inclusion
`grep -Ri "file_include(" * `
`grep -Ri "file_get_contents(" * `
`grep -Ri "include(" *`
- - -
## Command execution
`grep -Ri "shell_exec(" *`
`grep -RIt "system(" *`
`grep -Ri "exec(" * `

View File

@@ -92,3 +92,6 @@ str_repeat
unserialize
register_tick_function
register_shutdown_function
getuid
uname
gethostname