Skip to content

Commit d468041

Browse files
authored
Merge pull request #117 from 0xn3va/develop
Parameters injection
2 parents f37d7f4 + 7ac9b6a commit d468041

File tree

5 files changed

+517
-11
lines changed

5 files changed

+517
-11
lines changed

Web Application/Command Injection/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ cmd.Start()
1010
cmdWriter.Write([]byte("os command here\n"))
1111
cmd.Wait()
1212

13+
// os/exec CommandContext
14+
exec.CommandContext(ctx, "os command here", "arguments here").Run()
15+
1316
// os/exec Cmd
1417
cmd := &exec.Cmd {
1518
Path: "os command here",
@@ -37,15 +40,21 @@ execErr := syscall.Exec(
3740
```java
3841
// java.lang.Runtime exec
3942
Runtime.getRuntime().exec("os command here");
43+
java.lang.Runtime.getRuntime().exec("os command here");
4044

4145
// java.lang.Runtime loadLibrary
4246
Runtime.getRuntime().loadLibrary("path to library here");
47+
java.lang.Runtime.getRuntime().loadLibrary("path to library here");
4348

4449
// java.lang.ProcessBuilder
4550
new ProcessBuilder(
4651
"os command here",
4752
"arguments here"
4853
).start();
54+
new java.lang.ProcessBuilder(
55+
"os command here",
56+
"arguments here"
57+
).start();
4958

5059
// groovy.lang.GroovyShell
5160
// see https://docs.groovy-lang.org/latest/html/api/groovy/lang/GroovyShell.html

0 commit comments

Comments
 (0)