mirror of
https://github.com/legitnull/go.r4t
synced 2024-06-20 13:58:04 +00:00
first commit
This commit is contained in:
commit
410f0e58ca
0
enemy/main.go
Normal file
0
enemy/main.go
Normal file
26
server/main.go
Normal file
26
server/main.go
Normal file
@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var connc net.Conn
|
||||
IP := "192.168.1.204"
|
||||
Port := "55555"
|
||||
Addy := IP + ":" + Port
|
||||
|
||||
lis, err := net.Listen("tcp", Addy)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
connc, err = lis.Accept()
|
||||
if err != nil {
|
||||
log.Println("[-] Connection not established!")
|
||||
} else {
|
||||
fmt.Println("[+] Connection established from: " + connc.RemoteAddr().String())
|
||||
fmt.Println()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user