https://github.com/michalswi/bot
golang bot
https://github.com/michalswi/bot
bot go-bot golang
Last synced: 12 months ago
JSON representation
golang bot
- Host: GitHub
- URL: https://github.com/michalswi/bot
- Owner: michalswi
- Created: 2023-03-15T09:31:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T13:09:02.000Z (over 3 years ago)
- Last Synced: 2025-03-03T00:12:12.674Z (over 1 year ago)
- Topics: bot, go-bot, golang
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Bot
```
> target, where bot is running
> attackbox, from where I send commands
# example 1
[target]$ go run .
2023/03/14 19:02:26 Bot is ready to handle requests at port 8080
[attackbox]$ nc 8080
ping -c2 google.com
[target]$ go run .
2023/03/14 19:02:26 Bot is ready to handle requests at port 8080
PING google.com (216.58.209.14): 56 data bytes
64 bytes from 216.58.209.14: icmp_seq=0 ttl=118 time=12.802 ms
64 bytes from 216.58.209.14: icmp_seq=1 ttl=118 time=11.810 ms
--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.810/12.306/12.802/0.496 ms
# example 2
[attackbox]$ nc 8080
cat << EOF > /tmp/test.log
test1
test2
EOF
cat /tmp/test.log
[target]$ go run .
2023/03/14 19:02:26 Bot is ready to handle requests at port 8080
test1
test2
```