Skip to content

Commit 478a382

Browse files
committed
change package to GhostTroops 2023-12-11
1 parent 2cc363a commit 478a382

File tree

192 files changed

+430
-503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+430
-503
lines changed

brute/admin_brute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package brute
33
import (
44
"crypto/md5"
55
"fmt"
6-
"github.com/hktalent/scan4all/lib/util"
6+
"github.com/GhostTroops/scan4all/lib/util"
77
"net/url"
88
"regexp"
99
"strings"

brute/basic_brute.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package brute
22

33
import (
4-
"github.com/hktalent/scan4all/lib/util"
4+
"github.com/GhostTroops/scan4all/lib/util"
55
)
66

77
// 优化应该考虑
8-
// 1、一天内相同目标的结果缓存,只执行一次
9-
// 2、应该考虑多线程并发执行
8+
//
9+
// 1、一天内相同目标的结果缓存,只执行一次
10+
// 2、应该考虑多线程并发执行
1011
func Basic_brute(url string) (username string, password string) {
1112
if req, err := util.HttpRequsetBasic("asdasdascsacacs", "adcadcadcadcadcadc", url, "HEAD", "", false, nil); err == nil {
1213
// 超文本传输​​协议(HTTP) 401 Unauthorized 客户端错误状态响应代码表示客户端请求尚未完成,因为它缺少所请求资源的有效身份验证凭据

brute/bypass403.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package brute
22

33
import (
44
"context"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
"net/http"
77
"regexp"
88
"strings"

brute/check_loginpage.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package brute
22

33
import (
4-
"github.com/hktalent/scan4all/lib/util"
5-
"github.com/hktalent/scan4all/pkg/httpx/common/httpx"
4+
"github.com/GhostTroops/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/pkg/httpx/common/httpx"
66
"net/url"
77
"regexp"
88
"strings"

brute/dicts.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package brute
22

33
import (
44
_ "embed"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
"strings"
77
)
88

@@ -21,14 +21,17 @@ var (
2121
)
2222

2323
// by waf
24+
//
2425
//go:embed dicts/selfHd.txt
2526
var selfHds string
2627

2728
// http 爆破user
29+
//
2830
//go:embed dicts/httpuser.txt
2931
var httpuser string
3032

3133
// http 爆破密码字典
34+
//
3235
//go:embed dicts/httpass.txt
3336
var httpass string
3437

brute/filefuzz.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"context"
55
_ "embed"
66
"fmt"
7+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib/scan/Const"
8+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
9+
"github.com/GhostTroops/scan4all/lib/util"
10+
"github.com/GhostTroops/scan4all/pkg/fingerprint"
711
"github.com/antlabs/strsim"
8-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib/scan/Const"
9-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
10-
"github.com/hktalent/scan4all/lib/util"
11-
"github.com/hktalent/scan4all/pkg/fingerprint"
1212
"io/ioutil"
1313
"log"
1414
"mime"

brute/fuzzAI.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package brute
33
import (
44
_ "embed"
55
"encoding/json"
6+
"github.com/GhostTroops/scan4all/lib/util"
7+
"github.com/GhostTroops/scan4all/pkg"
8+
"github.com/GhostTroops/scan4all/pkg/fingerprint"
69
"github.com/antlabs/strsim"
7-
"github.com/hktalent/scan4all/lib/util"
8-
"github.com/hktalent/scan4all/pkg"
9-
"github.com/hktalent/scan4all/pkg/fingerprint"
1010
"gorm.io/gorm"
1111
"net/url"
1212
"regexp"

brute/fuzzfingerprints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package brute
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/hktalent/scan4all/lib/util"
6+
"github.com/GhostTroops/scan4all/lib/util"
77
"strings"
88
)
99

brute/jboss_brute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package brute
22

33
import (
44
"fmt"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
)
77

88
func Jboss_brute(url string) (username string, password string) {

brute/supportinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package brute
22

33
import (
44
_ "embed"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
"regexp"
77
"strings"
88
)

brute/tomcat_brute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package brute
22

33
import (
44
"fmt"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
)
77

88
func Tomcat_brute(url string) (username string, password string) {

brute/weblogic_brute.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ package brute
22

33
import (
44
"fmt"
5-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
)
77

88
// weblogic默认的登陆尝试次数为5次,
9-
// 5次失败则weblogic用户锁定,即使你已经找到正确的密码,也不能登陆到console
10-
// 默认的锁定时间为30分钟,后期可以设置策略,自动后台运行,每30分钟走一轮不重复的密码
11-
// 后期再优化间隔35分钟后继续后面的密码
9+
//
10+
// 5次失败则weblogic用户锁定,即使你已经找到正确的密码,也不能登陆到console
11+
// 默认的锁定时间为30分钟,后期可以设置策略,自动后台运行,每30分钟走一轮不重复的密码
12+
// 后期再优化间隔35分钟后继续后面的密码
1213
func Weblogic_brute(url string) (username string, password string) {
1314
if req, err := util.HttpRequset(url+"/console/login/LoginForm.jsp", "GET", "", false, nil); err == nil {
1415
if req.StatusCode == 200 {

engine/dispather.go

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

engine/dispather_test.go

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

engine/engineImp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package engine
22

33
import (
44
"context"
5-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib"
6-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
7-
"github.com/hktalent/scan4all/lib/util"
8-
"github.com/hktalent/scan4all/pocs_go"
5+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib"
6+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
7+
"github.com/GhostTroops/scan4all/lib/util"
8+
"github.com/GhostTroops/scan4all/pocs_go"
99
"github.com/panjf2000/ants/v2"
1010
"log"
1111
"os"

geCurIp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package main
22

33
import (
4-
"github.com/hktalent/scan4all/lib/Smuggling"
5-
"github.com/hktalent/scan4all/lib/util"
4+
"github.com/GhostTroops/scan4all/lib/Smuggling"
5+
"github.com/GhostTroops/scan4all/lib/util"
66
"os"
77
"testing"
88
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/hktalent/scan4all
1+
module github.com/GhostTroops/scan4all
22

33
go 1.21
44

lib/Smuggling/Base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package Smuggling
22

33
import (
4-
"github.com/hktalent/scan4all/lib/socket"
4+
"github.com/GhostTroops/scan4all/lib/socket"
55
"log"
66
"strings"
77
)

lib/Smuggling/CheckSmuggling.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package Smuggling
22

33
import (
44
"fmt"
5-
"github.com/hktalent/scan4all/lib/socket"
6-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/socket"
6+
"github.com/GhostTroops/scan4all/lib/util"
77
"log"
88
"net/url"
99
"strings"

lib/Smuggling/TE_CL.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package Smuggling
22

33
import (
4-
"github.com/hktalent/scan4all/lib/socket"
4+
"github.com/GhostTroops/scan4all/lib/socket"
55
"log"
66
"strings"
77
)

lib/Smuggling/generate/generateCLTE.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/hktalent/scan4all/lib/Smuggling"
6-
"github.com/hktalent/scan4all/lib/socket"
7-
"github.com/hktalent/scan4all/lib/util"
5+
"github.com/GhostTroops/scan4all/lib/Smuggling"
6+
"github.com/GhostTroops/scan4all/lib/socket"
7+
"github.com/GhostTroops/scan4all/lib/util"
88
"net/url"
99
"strings"
1010
"sync"

lib/api/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package api
22

33
import (
44
"encoding/json"
5+
_ "github.com/GhostTroops/scan4all/engine"
6+
"github.com/GhostTroops/scan4all/lib/util"
7+
"github.com/GhostTroops/scan4all/pkg/hydra"
8+
naaburunner "github.com/GhostTroops/scan4all/pkg/naabu/v2/pkg/runner"
59
util1 "github.com/hktalent/go-utils"
6-
_ "github.com/hktalent/scan4all/engine"
7-
"github.com/hktalent/scan4all/lib/util"
8-
"github.com/hktalent/scan4all/pkg/hydra"
9-
naaburunner "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/runner"
1010
"github.com/projectdiscovery/gologger"
1111
"io"
1212
"io/ioutil"

lib/crawlergo/test/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package main
22

33
import (
44
"context"
5+
pkg "github.com/GhostTroops/scan4all/lib/crawlergo"
56
"github.com/chromedp/chromedp"
6-
pkg "github.com/hktalent/scan4all/lib/crawlergo"
77
"log"
88
"time"
99
)

lib/socket/ConnTarget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"crypto/tls"
66
"errors"
77
"fmt"
8-
"github.com/hktalent/scan4all/lib/util"
8+
"github.com/GhostTroops/scan4all/lib/util"
99
"net"
1010
"net/url"
1111
"regexp"

lib/util/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package util
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
6+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
77
"log"
88
"os"
99
"runtime"

lib/util/sv2es.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"encoding/hex"
77
"encoding/json"
88
"fmt"
9-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib/scan/Const"
10-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
9+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib/scan/Const"
10+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
1111
"io/ioutil"
1212
"log"
1313
"net/http"

lib/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"encoding/json"
99
"errors"
1010
"fmt"
11+
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
1112
"github.com/codegangsta/inject"
1213
"github.com/corpix/uarand"
1314
"github.com/hbakhtiyor/strsim"
1415
"github.com/hktalent/PipelineHttp"
15-
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
1616
"github.com/karlseguin/ccache"
1717
"io"
1818
"io/ioutil"

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"embed"
55
"fmt"
6-
"github.com/hktalent/scan4all/lib/api"
7-
"github.com/hktalent/scan4all/lib/util"
6+
"github.com/GhostTroops/scan4all/lib/api"
7+
"github.com/GhostTroops/scan4all/lib/util"
88
"log"
99
"net/http"
1010
_ "net/http/pprof"

0 commit comments

Comments
 (0)