fscan icon indicating copy to clipboard operation
fscan copied to clipboard

linux 低权限报错

Open TryA9ain opened this issue 4 years ago • 8 comments

cat /proc/version whoami image

alive ports len is: 222
start vulscan
panic: setting PGSERVICEFILE not supported

goroutine 14396 [running]:
github.com/lib/pq.parseEnviron.func2(...)
        github.com/lib/[email protected]/conn.go:1962
github.com/lib/pq.parseEnviron(0xc0003c0a00, 0x49, 0x49, 0xc0001727b0)
        github.com/lib/[email protected]/conn.go:1985 +0x1245
github.com/lib/pq.NewConnector(0xc00034a050, 0x44, 0xc000bde6a8, 0xc00069efc0, 0xc00069efc0)
        github.com/lib/[email protected]/connector.go:56 +0x145
github.com/lib/pq.DialOpen(0xd5e2d0, 0xc00069efc0, 0xc00034a050, 0x44, 0x7f9362f1f800, 0x20300000000000, 0x7f9363094fff, 0x7f933bfea4b0)
        github.com/lib/[email protected]/conn.go:286 +0x39
github.com/lib/pq.Open(...)
        github.com/lib/[email protected]/conn.go:281
github.com/lib/pq.Driver.Open(0xc00034a050, 0x44, 0x100000012, 0x1364dc8, 0x7f933c4aa7f0, 0x8)
        github.com/lib/[email protected]/conn.go:54 +0x9f
database/sql.dsnConnector.Connect(...)
        database/sql/sql.go:707
database/sql.(*DB).conn(0xc00040c1a0, 0xd64b90, 0xc0000380b0, 0xc00114e001, 0x0, 0xc000bde900, 0x4ebe0b)
        database/sql/sql.go:1300 +0x184
database/sql.(*DB).PingContext(0xc00040c1a0, 0xd64b90, 0xc0000380b0, 0x44, 0xc00040c1a0)
        database/sql/sql.go:799 +0x90
database/sql.(*DB).Ping(...)
        database/sql/sql.go:816
github.com/shadow1ng/fscan/Plugins.PostgresConn(0xc0000108c0, 0xc5bdce, 0x8, 0xc587a6, 0x6, 0x0, 0x0, 0x0)
        github.com/shadow1ng/[email protected]/Plugins/postgres.go:44 +0x2e7
github.com/shadow1ng/fscan/Plugins.PostgresScan(0xc0000108c0, 0x0, 0x0)
        github.com/shadow1ng/[email protected]/Plugins/postgres.go:17 +0x1d4
reflect.Value.call(0xb44220, 0xcabde8, 0x13, 0xc56c6f, 0x4, 0xc00114a000, 0x1, 0x1, 0xc0009d4690, 0x44daec, ...)
        reflect/value.go:476 +0x8e7
reflect.Value.Call(0xb44220, 0xcabde8, 0x13, 0xc00114a000, 0x1, 0x1, 0xc0000380b0, 0x0, 0xb65d00)
        reflect/value.go:337 +0xb9
github.com/shadow1ng/fscan/Plugins.ScanFunc(0xc0003babd0, 0xc00089824c, 0x4, 0xc0009d4798, 0x1, 0x1, 0x4fc205, 0xd64b90, 0xc0000380b0, 0xd5c430, ...)
        github.com/shadow1ng/[email protected]/Plugins/scanner.go:107 +0x23a
github.com/shadow1ng/fscan/Plugins.AddScan.func1(0xc00089824c, 0x4, 0xc0000108c0, 0xc0003c7510, 0xc0000a28a0)
        github.com/shadow1ng/[email protected]/Plugins/scanner.go:86 +0xc5
created by github.com/shadow1ng/fscan/Plugins.AddScan
        github.com/shadow1ng/[email protected]/Plugins/scanner.go:82 +0xdd

image

TryA9ain avatar Jul 14 '21 09:07 TryA9ain

可以先临时跳过pgsql扫描,-pn 5432

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

https://www.modb.pro/db/144201 image

niudaii avatar Aug 01 '22 06:08 niudaii

那我更新一下go.mod就行

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

师傅更新下go.mod 重新编译试试

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

最新更新到1.10.6了

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

image

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

啊这,不过他这个1.10.6里的对应代码没改

shadow1ng avatar Aug 01 '22 06:08 shadow1ng

嗯嗯,那有需要的话还是改源码吧,参考那个链接自己重新编译就好了。

niudaii avatar Aug 01 '22 06:08 niudaii