v0.1 - initial commit

This commit is contained in:
2026-07-18 21:37:15 +03:00
commit 9b89f4cb8e
153 changed files with 22887 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package winpwn
import (
"fmt"
"net"
)
// Remote opens a TCP connection to a remote target as a Tube, the Go
// analogue of pwntools' remote().
func Remote(host string, port string) (*Tube, error) {
address := host + ":" + port
Info("Opening connection to %s", address)
conn, err := net.Dial("tcp", address)
if err != nil {
return nil, fmt.Errorf("connect to %s: %w", address, err)
}
Success("Connected to %s", address)
return newTube(nil, conn, conn, conn), nil
}