Skip to content

Commit ec1afe4

Browse files
committed
fix pop3 not import message 2022-09-28
1 parent c9316e1 commit ec1afe4

File tree

15 files changed

+48
-419
lines changed

15 files changed

+48
-419
lines changed

.github/build/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project_name: scan4all
77
builds:
88
- id: scan4all-darwin
99
ldflags:
10-
- -s -w
10+
- -s -w -X main.Version={{.Version}}
1111
binary: scan4all
1212
env:
1313
- CGO_ENABLED=1

HomebrewFormula/scan4all.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class Rage < Formula
2+
desc "Official repository vuls Scan: 15000+PoCs; 23 kinds of application password crack; 7000+Web fingerprints; 146 protocols and 90000+ rules Port scanning; Fuzz, HW, awesome BugBounty( ͡° ͜ʖ ͡°)..."
3+
homepage "https://scan4all.51pwn.com"
4+
url "https://github.com/hktalent/scan4all/releases/download/2.8.1/scan4all_2.8.1_macOS_amd64.zip"
5+
sha256 "2af8d9f67bae7c03ef20d064b2f23e7bef4c95f0cf7e1da33cbd42fcceabeb39"
6+
version "2.8.1"
7+
8+
depends_on "rust" => :build
9+
10+
def install
11+
system "cargo", "install", *std_cargo_args(path: './scan4all_2.8.1_macOS_amd64')
12+
end
13+
14+
test do
15+
end
16+
end

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Tomcat
4444
* Jboss
4545
* Winrm(wsman)
46-
* POP3
46+
* POP3/POP3S
4747
- By default, http password intelligent blasting is enabled, and it will be automatically activated when an HTTP password is required, without manual intervention
4848
- Detect whether there is nmap in the system, and enable nmap for fast scanning through priorityNmap=true, which is enabled by default, and the optimized nmap parameters are faster than masscan
4949
Disadvantages of using nmap: Is the network bad, because the traffic network packet is too large, which may lead to incomplete results

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Vulnerabilities Scan;15000+PoC漏洞扫描;[ 23 ] 种应用弱口令爆破
4343
* Tomcat
4444
* Jboss
4545
* Winrm(wsman)
46-
* POP3
46+
* POP3/POP3S
4747
- 默认开启http密码智能爆破,需要 HTTP 密码时才会自动启动,无需人工干预
4848
- 检测系统是否存在 nmap ,存在通过 priorityNmap=true 启用 nmap 进行快速扫描,默认开启,优化过的 nmap 参数比 masscan 快
4949
使用 nmap 的弊端:网络不好的是否,因为流量网络包过大可能会导致结果不全

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ require (
9292
github.com/denisenkom/go-mssqldb v0.12.2
9393
github.com/dgraph-io/badger v1.6.2
9494
github.com/dlclark/regexp2 v1.7.0
95+
github.com/emersion/go-message v0.16.0
9596
github.com/go-playground/validator/v10 v10.11.1
9697
github.com/go-routeros/routeros v0.0.0-20210123142807-2a44d57c6730
9798
github.com/go-sql-driver/mysql v1.6.0
@@ -104,7 +105,6 @@ require (
104105
github.com/icodeface/tls v0.0.0-20190904083142-17aec93c60e5
105106
github.com/jlaffaye/ftp v0.1.0
106107
github.com/karlseguin/ccache v2.0.3+incompatible
107-
github.com/lair-framework/go-nmap v0.0.0-20191202052157-3507e0b03523
108108
github.com/lcvvvv/gonmap v1.2.1
109109
github.com/lib/pq v1.10.7
110110
github.com/lunixbochs/struc v0.0.0-20200707160740-784aaebc1d40
@@ -113,6 +113,7 @@ require (
113113
github.com/mitchellh/go-homedir v1.1.0
114114
github.com/olekukonko/tablewriter v0.0.5
115115
github.com/olivere/elastic v6.2.37+incompatible
116+
github.com/panjf2000/ants/v2 v2.5.0
116117
github.com/projectdiscovery/folderutil v0.0.0-20220523100846-d6161a49c221
117118
github.com/projectdiscovery/iputil v0.0.0-20220620153941-036d511e4097
118119
github.com/projectdiscovery/nuclei-updatecheck-api v0.0.0-20220726130814-981d44a34f84
@@ -174,6 +175,7 @@ require (
174175
github.com/docker/go-units v0.5.0 // indirect
175176
github.com/dsnet/compress v0.0.1 // indirect
176177
github.com/dustin/go-humanize v1.0.0 // indirect
178+
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594 // indirect
177179
github.com/fatih/structs v1.1.0 // indirect
178180
github.com/fortytw2/leaktest v1.3.0 // indirect
179181
github.com/fsnotify/fsnotify v1.5.4 // indirect
@@ -245,7 +247,6 @@ require (
245247
github.com/nwaples/rardecode v1.1.3 // indirect
246248
github.com/openrdap/rdap v0.9.1-0.20191017185644-af93e7ef17b7 // indirect
247249
github.com/owenrumney/go-sarif/v2 v2.1.2 // indirect
248-
github.com/panjf2000/ants/v2 v2.5.0 // indirect
249250
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
250251
github.com/pelletier/go-toml v1.9.5 // indirect
251252
github.com/pelletier/go-toml/v2 v2.0.5 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4
249249
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
250250
github.com/eggsampler/acme/v3 v3.2.1/go.mod h1:/qh0rKC/Dh7Jj+p4So7DbWmFNzC4dpcpK53r226Fhuo=
251251
github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM=
252+
github.com/emersion/go-message v0.16.0 h1:uZLz8ClLv3V5fSFF/fFdW9jXjrZkXIpE1Fn8fKx7pO4=
253+
github.com/emersion/go-message v0.16.0/go.mod h1:pDJDgf/xeUIF+eicT6B/hPX/ZbEorKkUMPOxrPVG2eQ=
254+
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594 h1:IbFBtwoTQyw0fIM5xv1HF+Y+3ZijDR839WMulgxCcUY=
255+
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594/go.mod h1:aqO8z8wPrjkscevZJFVE1wXJrLpC5LtJG7fqLOsPb2U=
252256
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
253257
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
254258
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
@@ -602,8 +606,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
602606
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
603607
github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g=
604608
github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
605-
github.com/lair-framework/go-nmap v0.0.0-20191202052157-3507e0b03523 h1:N4NQR4on0n3Kc3xlBXUYzCZorFdordwkR2kcZMk9te0=
606-
github.com/lair-framework/go-nmap v0.0.0-20191202052157-3507e0b03523/go.mod h1:7Em1Lxm3DFdLvXWUZ6bQ/xIbGlxFy7jl07bziQMZ/kU=
607609
github.com/lcvvvv/gonmap v1.2.1 h1:Itbo0mnH45X9HBdzjn92e0ZTaBbBdfyfxWY21uGUAw8=
608610
github.com/lcvvvv/gonmap v1.2.1/go.mod h1:USOReUnvvGX9/3h8arU3c6ViJ0dCilM+bTwJWQI4e0A=
609611
github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80 h1:6Yzfa6GP0rIo/kULo2bwGEkFvCePZ3qHDDTC3/J9Swo=

lib/util/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"runtime"
1212
)
1313

14-
const Version = `2.7.9`
14+
var Version = `2.7.9`
1515

1616
var MyName = "scan4all"
1717

main.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,28 @@ import (
99
"net/http"
1010
_ "net/http/pprof"
1111
"runtime"
12+
"runtime/debug"
1213
)
1314

1415
//go:embed config/*
1516
var config embed.FS
1617

18+
// Version can be set at link time to override debug.BuildInfo.Main.Version,
19+
// which is "(devel)" when building from within the module. See
20+
// golang.org/issue/29814 and golang.org/issue/29228.
21+
var Version string
22+
1723
func main() {
1824
//os.Args = []string{"", "-host", "http://127.0.0.1"}
1925
runtime.GOMAXPROCS(runtime.NumCPU())
2026
util.DoInit(&config)
27+
// set version
28+
if buildInfo, ok := debug.ReadBuildInfo(); ok {
29+
util.Version = buildInfo.Main.Version
30+
} else {
31+
Version = util.Version
32+
}
33+
2134
szTip := ""
2235
if util.GetValAsBool("enablDevDebug") {
2336
// debug 优化时启用///////////////////////

pkg/hydra/pop3/pop3.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"crypto/tls"
77
"errors"
88
"fmt"
9+
"github.com/emersion/go-message"
910
"net"
1011
"strconv"
1112
"strings"

vendor/github.com/Ullaakut/nmap/nmap.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/lair-framework/go-nmap/.gitignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

vendor/github.com/lair-framework/go-nmap/LICENSE

Lines changed: 0 additions & 20 deletions
This file was deleted.

vendor/github.com/lair-framework/go-nmap/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)