You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,28 +47,49 @@ Options:
47
47
## Examples
48
48
The tool fully supports static and dynamically compiled Linux executables and Windows PE (portable executable). Simply pass the filename of the binary to `ulexec` and any arguments you want to supply to the binary. The environment will be directly copied over from the environment in which you execute `ulexec`
49
49
50
+
The file path can be passed directly or with `~~f | ~~file` argument or env var `ULEXEC_FILE`
51
+
50
52
```
51
53
ulexec /bin/ls -lha
52
54
```
53
55
54
-
You can have it read a binary from `stdin` if you specify `~~s | ~~stdin` argument
56
+
You can read a binary from `stdin` if you specify `~~s | ~~stdin` argument or env var `ULEXEC_STDIN=1`
55
57
56
58
```
57
59
cat /bin/ls|ulexec ~~s -lha
58
60
# or
59
61
ulexec ~~s</bin/ls -lha
60
62
```
61
63
62
-
To download a binary into memory and immediately execute it you can use `~~u | ~~url`
64
+
To download a binary into memory and immediately execute it you can use `~~u | ~~url` argument or env var `ULEXEC_URL` or pass the URL directly
65
+
66
+
```
67
+
ulexec http://example.com/bin/ls -lha
68
+
```
69
+
70
+
If the resource (for example https://temp.sh) on which the binary file is located requires using the POST method instead of GET to start downloading, you can specify this with the `~~p | ~~post` argument or env var `ULEXEC_POST=1`
71
+
72
+
```
73
+
ulexec ~~p http://temp.sh/ABCDEF/ls -lha
74
+
```
75
+
76
+
For executable files that need to fork themselves, you can use the `~~re | ~~reexec` argument or env var `ULEXEC_REEXEC=1`
To self remove `ulexec` at startup, you can use the `~~r | ~~remove` argument or env var `ULEXEC_REMOVE=1`
63
84
64
85
```
65
-
ulexec ~~u http://example.com/bin/ls -lha
86
+
ulexec ~~r http://example.com/bin/ls -lha
66
87
```
67
88
68
-
If the resource (for example https://temp.sh) on which the binary file is located requires using the POST method instead of GET to start downloading, you can specify this with the `~~p | ~~post` argument
0 commit comments