gobysec / Goby

Attack surface mapping
https://gobies.org/
1.39k stars 151 forks source link

goby扫描报错 #388

Open HHHHHONORG opened 1 year ago

HHHHHONORG commented 1 year ago

linux扫描报错 如下: 2023/01/16 04:12:11 Successfully raised file descriptor limit to 32000 2023/01/16 04:12:11 read user rule file ok: 0 2023/01/16 04:12:11 Version: v2.0.317 beta 2023/01/16 04:12:13 API Server listen at 127.0.0.1:8361 2023/01/16 04:12:13 127.0.0.1:43320 POST /api/v1/setEnvi 2023/01/16 04:12:13 127.0.0.1:43330 GET /api/v1/getEnvi?field=chromePath,dataIntegrity,datadir,dir,midKey,proxyServer,userRuleSize,vulVersion 2023/01/16 04:12:13 127.0.0.1:43340 GET /api/v1/getEnvi?field=ip 2023/01/16 04:12:13 127.0.0.1:43352 GET /api/v1/getEnvi?field=gid,key,godserver 2023/01/16 04:12:13 [DEBUG] get adapter of device wlo1 2023/01/16 04:12:13 [DEBUG] devices: [{enp2s0 22 [{192.168.1.115 ffffff00 192.168.1.255 } {fe80::a762:64e8:69b5:1e93 ffffffffffffffff0000000000000000 }]} {wlo1 30 [{192.168.124.18 ffffff00 192.168.124.255 } {fe80::aa63:e0a1:dd0:ed0d ffffffffffffffff0000000000000000 }]} {lo 55 [{127.0.0.1 ff000000 } {::1 ffffffffffffffffffffffffffffffff }]} {any Pseudo-device that captures on all interfaces 54 []} {nflog Linux netfilter log (NFLOG) interface 48 []} {nfqueue Linux netfilter queue (NFQUEUE) interface 48 []}] 2023/01/16 04:12:13 [DEBUG] device name is not match: enp2s0 != wlo1 2023/01/16 04:12:13 [DEBUG] getGatewayMac: wlo1 0.0.0.0 2023/01/16 04:12:13 wlo1: You don't have permission to capture on that device (socket: Operation not permitted) goroutine 67 [running]: runtime/debug.Stack() runtime/debug/stack.go:24 +0x65 git.gobies.org/goby/goby/api.envField({0x0, 0x7f55ad16f5c0}, {0xc000a9f4ea, 0x2}) git.gobies.org/goby/goby/api/getEnvi.go:115 +0x365 git.gobies.org/goby/goby/api.getEnviFields({0x0, 0x0}, {0xc005947060, 0x1, 0x0}) git.gobies.org/goby/goby/api/getEnvi.go:180 +0xec git.gobies.org/goby/goby/api.getEnviHandler({0x2d64eb0, 0xc0001c22a0}, 0xc005a3a1e0) git.gobies.org/goby/goby/api/getEnvi.go:213 +0x125 net/http.HandlerFunc.ServeHTTP(...) net/http/server.go:2047 git.gobies.org/goby/goby/api.basicAuth.func1({0x2d64eb0, 0xc0001c22a0}, 0x90) git.gobies.org/goby/goby/api/api.go:115 +0x251 net/http.HandlerFunc.ServeHTTP(...) net/http/server.go:2047 git.gobies.org/goby/goby/api.logHttpRequest.func1({0x2d64eb0, 0xc0001c22a0}, 0xc0009dc400) git.gobies.org/goby/goby/api/api.go:98 +0x1fe net/http.HandlerFunc.ServeHTTP(0xc0009dc300, {0x2d64eb0, 0xc0001c22a0}, 0xc0060b19f8) net/http/server.go:2047 +0x2f github.com/gorilla/mux.(Router).ServeHTTP(0xc005ede540, {0x2d64eb0, 0xc0001c22a0}, 0xc0009dc200) github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf net/http.serverHandler.ServeHTTP({0xc002ee1ef0}, {0x2d64eb0, 0xc0001c22a0}, 0xc0009dc200) net/http/server.go:2879 +0x43b net/http.(conn).serve(0xc0015bd4a0, {0x2d76b60, 0xc002f7a4e0}) net/http/server.go:1930 +0xb08 created by net/http.(Server).Serve net/http/server.go:3034 +0x4e8 2023/01/16 04:12:13 [StartService ERROR] {content:"pcap problem", errCode: 1 } 2023/01/16 04:12:13 127.0.0.1:43374 GET /api/v1/getEnvi?field=licenseInfo 2023/01/16 04:12:13 127.0.0.1:43362 GET /api/v1/live 2023/01/16 04:12:13 127.0.0.1:43390 POST /api/v1/getTasks 2023/01/16 04:12:15 127.0.0.1:43392 POST /api/v1/getPOCList 2023/01/16 04:12:16 127.0.0.1:43878 POST /api/v1/startScan 2023/01/16 04:12:16 [WARNING] change deep-analysis feature is not included in your current license. 2023/01/16 04:12:16 scan 21,22,23,25,53,U:53,U:69,80,81,U:88,110,111,U:111,123,U:123,135,U:137,139,U:161,U:177,389,U:427,443,445,465,500,515,U:520,U:523,548,623,U:626,636,873,902,1080,1099,1433,U:1434,1521,U:1604,U:1645,U:1701,1883,U:1900,2049,2181,2375,2379,U:2425,3128,3306,3389,4730,U:5060,5222,U:5351,U:5353,5432,5555,5601,5672,U:5683,5900,5938,5984,6000,6379,7001,7077,8080,8081,8443,8545,8686,9000,9001,9042,9092,9100,9200,9418,9999,11211,U:11211,27017,U:33848,37777,50000,50070,61616 192.168.1.0/24 2023/01/16 04:12:16 start port scanner: totalSize: 23296, rate: 100, connectionSize: 100, connectTimeout: 6s, retryTimes: 0, Random: true, Seed: 1673813536551219138, ScanOffset: 0, ScanICMP: false, CheckAliveMode: 2 2023/01/16 04:12:16 pcap version: libpcap version 1.9.1 (with TPACKET_V3) 2023/01/16 04:12:16 found device from route table for 192.168.1.255: enp2s0 2023/01/16 04:12:16 [DEBUG] get adapter of device enp2s0 2023/01/16 04:12:16 [DEBUG] devices: [{enp2s0 22 [{192.168.1.115 ffffff00 192.168.1.255 } {fe80::a762:64e8:69b5:1e93 ffffffffffffffff0000000000000000 }]} {wlo1 30 [{192.168.124.18 ffffff00 192.168.124.255 } {fe80::aa63:e0a1:dd0:ed0d ffffffffffffffff0000000000000000 }]} {lo 55 [{127.0.0.1 ff000000 } {::1 ffffffffffffffffffffffffffffffff }]} {any Pseudo-device that captures on all interfaces 54 []} {nflog Linux netfilter log (NFLOG) interface 48 []} {nfqueue Linux netfilter queue (NFQUEUE) interface 48 []}] 2023/01/16 04:12:16 [DEBUG] getGatewayMac: enp2s0 192.168.1.255 panic: enp2s0: You don't have permission to capture on that device (socket: Operation not permitted) goroutine 106 [running]: git.gobies.org/goby/portscanner/pcapsend.getGatewayMac({0xc005c0e000, 0x6}, 0xc0a801ff) git.gobies.org/goby/portscanner@v0.0.0-20220610013748-054fad719c9f/pcapsend/send.go:1276 +0x68d git.gobies.org/goby/portscanner/pcapsend.getAdapter({0xc005bdfb80, 0x6}, 0x0, 0xc0, 0x0) git.gobies.org/goby/portscanner@v0.0.0-20220610013748-054fad719c9f/pcapsend/device.go:285 +0x56b git.gobies.org/goby/portscanner/pcapsend.NewPcapSender(0xc00058e210, 0xc005582a00, 0xc005582a50) git.gobies.org/goby/portscanner@v0.0.0-20220610013748-054fad719c9f/pcapsend/send.go:104 +0x3ff git.gobies.org/goby/portscanner.(PortScanner).startPcapScan(0xc002956070, {0x2d76ab8, 0xc00594d840}, 0xc002a447d0, 0xc00029f6e0, 0xc00029f800) git.gobies.org/goby/portscanner@v0.0.0-20220610013748-054fad719c9f/portscanner.go:194 +0x88 created by git.gobies.org/goby/portscanner.(*PortScanner).Start git.gobies.org/goby/portscanner@v0.0.0-20220610013748-054fad719c9f/portscanner.go:243 +0x585

gobysec commented 1 year ago

如果是mac的话,是没有权限了,可以参考FAQhttps://gobysec.net/faq 若未解决,请联系微信号:gobyteam