Skip to content

Commit

Permalink
change package to GhostTroops 2023-12-11
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Dec 11, 2023
1 parent 2cc363a commit 478a382
Show file tree
Hide file tree
Showing 192 changed files with 430 additions and 503 deletions.
2 changes: 1 addition & 1 deletion brute/admin_brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brute
import (
"crypto/md5"
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"net/url"
"regexp"
"strings"
Expand Down
7 changes: 4 additions & 3 deletions brute/basic_brute.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package brute

import (
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
)

// 优化应该考虑
// 1、一天内相同目标的结果缓存,只执行一次
// 2、应该考虑多线程并发执行
//
// 1、一天内相同目标的结果缓存,只执行一次
// 2、应该考虑多线程并发执行
func Basic_brute(url string) (username string, password string) {
if req, err := util.HttpRequsetBasic("asdasdascsacacs", "adcadcadcadcadcadc", url, "HEAD", "", false, nil); err == nil {
// 超文本传输​​协议(HTTP) 401 Unauthorized 客户端错误状态响应代码表示客户端请求尚未完成,因为它缺少所请求资源的有效身份验证凭据
Expand Down
2 changes: 1 addition & 1 deletion brute/bypass403.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package brute

import (
"context"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"net/http"
"regexp"
"strings"
Expand Down
4 changes: 2 additions & 2 deletions brute/check_loginpage.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package brute

import (
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pkg/httpx/common/httpx"
"github.com/GhostTroops/scan4all/lib/util"
"github.com/GhostTroops/scan4all/pkg/httpx/common/httpx"
"net/url"
"regexp"
"strings"
Expand Down
5 changes: 4 additions & 1 deletion brute/dicts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package brute

import (
_ "embed"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"strings"
)

Expand All @@ -21,14 +21,17 @@ var (
)

// by waf
//
//go:embed dicts/selfHd.txt
var selfHds string

// http 爆破user
//
//go:embed dicts/httpuser.txt
var httpuser string

// http 爆破密码字典
//
//go:embed dicts/httpass.txt
var httpass string

Expand Down
8 changes: 4 additions & 4 deletions brute/filefuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
_ "embed"
"fmt"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib/scan/Const"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/GhostTroops/scan4all/lib/util"
"github.com/GhostTroops/scan4all/pkg/fingerprint"
"github.com/antlabs/strsim"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib/scan/Const"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pkg/fingerprint"
"io/ioutil"
"log"
"mime"
Expand Down
6 changes: 3 additions & 3 deletions brute/fuzzAI.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package brute
import (
_ "embed"
"encoding/json"
"github.com/GhostTroops/scan4all/lib/util"
"github.com/GhostTroops/scan4all/pkg"
"github.com/GhostTroops/scan4all/pkg/fingerprint"
"github.com/antlabs/strsim"
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pkg"
"github.com/hktalent/scan4all/pkg/fingerprint"
"gorm.io/gorm"
"net/url"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion brute/fuzzfingerprints.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brute
import (
"encoding/json"
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion brute/jboss_brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package brute

import (
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
)

func Jboss_brute(url string) (username string, password string) {
Expand Down
2 changes: 1 addition & 1 deletion brute/supportinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package brute

import (
_ "embed"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"regexp"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion brute/tomcat_brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package brute

import (
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
)

func Tomcat_brute(url string) (username string, password string) {
Expand Down
9 changes: 5 additions & 4 deletions brute/weblogic_brute.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package brute

import (
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
)

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

This file was deleted.

24 changes: 0 additions & 24 deletions engine/dispather_test.go

This file was deleted.

8 changes: 4 additions & 4 deletions engine/engineImp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package engine

import (
"context"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pocs_go"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/GhostTroops/scan4all/lib/util"
"github.com/GhostTroops/scan4all/pocs_go"
"github.com/panjf2000/ants/v2"
"log"
"os"
Expand Down
4 changes: 2 additions & 2 deletions geCurIp_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/hktalent/scan4all/lib/Smuggling"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/Smuggling"
"github.com/GhostTroops/scan4all/lib/util"
"os"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hktalent/scan4all
module github.com/GhostTroops/scan4all

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion lib/Smuggling/Base.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Smuggling

import (
"github.com/hktalent/scan4all/lib/socket"
"github.com/GhostTroops/scan4all/lib/socket"
"log"
"strings"
)
Expand Down
4 changes: 2 additions & 2 deletions lib/Smuggling/CheckSmuggling.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package Smuggling

import (
"fmt"
"github.com/hktalent/scan4all/lib/socket"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/socket"
"github.com/GhostTroops/scan4all/lib/util"
"log"
"net/url"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion lib/Smuggling/TE_CL.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Smuggling

import (
"github.com/hktalent/scan4all/lib/socket"
"github.com/GhostTroops/scan4all/lib/socket"
"log"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions lib/Smuggling/generate/generateCLTE.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"fmt"
"github.com/hktalent/scan4all/lib/Smuggling"
"github.com/hktalent/scan4all/lib/socket"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/Smuggling"
"github.com/GhostTroops/scan4all/lib/socket"
"github.com/GhostTroops/scan4all/lib/util"
"net/url"
"strings"
"sync"
Expand Down
8 changes: 4 additions & 4 deletions lib/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package api

import (
"encoding/json"
_ "github.com/GhostTroops/scan4all/engine"
"github.com/GhostTroops/scan4all/lib/util"
"github.com/GhostTroops/scan4all/pkg/hydra"
naaburunner "github.com/GhostTroops/scan4all/pkg/naabu/v2/pkg/runner"
util1 "github.com/hktalent/go-utils"
_ "github.com/hktalent/scan4all/engine"
"github.com/hktalent/scan4all/lib/util"
"github.com/hktalent/scan4all/pkg/hydra"
naaburunner "github.com/hktalent/scan4all/pkg/naabu/v2/pkg/runner"
"github.com/projectdiscovery/gologger"
"io"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion lib/crawlergo/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"context"
pkg "github.com/GhostTroops/scan4all/lib/crawlergo"
"github.com/chromedp/chromedp"
pkg "github.com/hktalent/scan4all/lib/crawlergo"
"log"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/socket/ConnTarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/util"
"net"
"net/url"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion lib/util/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package util
import (
"encoding/json"
"fmt"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
"log"
"os"
"runtime"
Expand Down
4 changes: 2 additions & 2 deletions lib/util/sv2es.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/lib/scan/Const"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/lib/scan/Const"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
"io/ioutil"
"log"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion lib/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/GhostTroops/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/codegangsta/inject"
"github.com/corpix/uarand"
"github.com/hbakhtiyor/strsim"
"github.com/hktalent/PipelineHttp"
"github.com/hktalent/scan4all/lib/goSqlite_gorm/pkg/models"
"github.com/karlseguin/ccache"
"io"
"io/ioutil"
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"embed"
"fmt"
"github.com/hktalent/scan4all/lib/api"
"github.com/hktalent/scan4all/lib/util"
"github.com/GhostTroops/scan4all/lib/api"
"github.com/GhostTroops/scan4all/lib/util"
"log"
"net/http"
_ "net/http/pprof"
Expand Down
Loading

0 comments on commit 478a382

Please sign in to comment.