fix "modifer" -> "modifier" typo everywhere
This commit is contained in:
@@ -21,7 +21,7 @@ tmp_dir = "tmp"
|
||||
poll = false
|
||||
poll_interval = 0
|
||||
post_cmd = []
|
||||
pre_cmd = ["git rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION"]
|
||||
pre_cmd = ["git submodule update --init --recursive; rev-parse --short HEAD > handlers/VERSION; git rev-parse --short HEAD > cmd/VERSION"]
|
||||
rerun = false
|
||||
rerun_delay = 500
|
||||
send_interrupt = false
|
||||
|
||||
10
.gitmodules
vendored
10
.gitmodules
vendored
@@ -1,6 +1,6 @@
|
||||
[submodule "proxychain/requestmodifers/vendor/ua-parser-js"]
|
||||
path = proxychain/requestmodifers/vendor/ua-parser-js
|
||||
url = https://github.com/faisalman/ua-parser-js.git
|
||||
[submodule "proxychain/responsemodifers/vendor/ddg-tracker-surrogates"]
|
||||
path = proxychain/responsemodifers/vendor/ddg-tracker-surrogates
|
||||
[submodule "proxychain/responsemodifiers/vendor/ddg-tracker-surrogates"]
|
||||
path = proxychain/responsemodifiers/vendor/ddg-tracker-surrogates
|
||||
url = https://github.com/duckduckgo/tracker-surrogates
|
||||
[submodule "proxychain/requestmodifiers/vendor/ua-parser-js"]
|
||||
path = proxychain/requestmodifiers/vendor/ua-parser-js
|
||||
url = https://github.com/faisalman/ua-parser-js.git
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"ladder/handlers"
|
||||
"ladder/internal/cli"
|
||||
"ladder/proxychain/requestmodifers/bot"
|
||||
"ladder/proxychain/requestmodifiers/bot"
|
||||
|
||||
"github.com/akamensky/argparse"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
|
||||
1
go.mod
1
go.mod
@@ -3,7 +3,6 @@ module ladder
|
||||
go 1.21.1
|
||||
|
||||
require (
|
||||
github.com/3th1nk/cidr v0.2.0
|
||||
github.com/akamensky/argparse v1.4.0
|
||||
github.com/bogdanfinn/fhttp v0.5.24
|
||||
github.com/bogdanfinn/tls-client v1.6.1
|
||||
|
||||
3
go.sum
3
go.sum
@@ -1,5 +1,3 @@
|
||||
github.com/3th1nk/cidr v0.2.0 h1:81jjEknszD8SHPLVTPPk+BZjNVqq1ND2YXLSChl6Lrs=
|
||||
github.com/3th1nk/cidr v0.2.0/go.mod h1:XsSQnS4rEYyB2veDfnIGgViulFpIITPKtp3f0VxpiLw=
|
||||
github.com/abadojack/whatlanggo v1.0.1 h1:19N6YogDnf71CTHm3Mp2qhYfkRdyvbgwWdd2EPxJRG4=
|
||||
github.com/abadojack/whatlanggo v1.0.1/go.mod h1:66WiQbSbJBIlOZMsvbKe5m6pzQovxCH9B/K8tQB2uoc=
|
||||
github.com/akamensky/argparse v1.4.0 h1:YGzvsTqCvbEZhL8zZu2AiA5nq805NZh75JNj4ajn1xc=
|
||||
@@ -84,7 +82,6 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ
|
||||
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
|
||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
|
||||
github.com/tam7t/hpkp v0.0.0-20160821193359-2b70b4024ed5 h1:YqAladjX7xpA6BM04leXMWAEjS0mTZ5kUU9KRBriQJc=
|
||||
|
||||
@@ -2,8 +2,8 @@ package handlers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
rx "ladder/proxychain/requestmodifers"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
rx "ladder/proxychain/requestmodifiers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
@@ -2,8 +2,8 @@ package handlers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
rx "ladder/proxychain/requestmodifers"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
rx "ladder/proxychain/requestmodifiers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
@@ -2,8 +2,8 @@ package handlers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
rx "ladder/proxychain/requestmodifers"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
rx "ladder/proxychain/requestmodifiers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
@@ -42,9 +42,9 @@ applying request and response modifications along the way.
|
||||
|
||||
import (
|
||||
|
||||
rx "ladder/pkg/proxychain/requestmodifers"
|
||||
tx "ladder/pkg/proxychain/responsemodifers"
|
||||
"ladder/pkg/proxychain/responsemodifers/rewriters"
|
||||
rx "ladder/pkg/proxychain/requestmodifiers"
|
||||
tx "ladder/pkg/proxychain/responsemodifiers"
|
||||
"ladder/pkg/proxychain/responsemodifiers/rewriters"
|
||||
"ladder/internal/proxychain"
|
||||
|
||||
)
|
||||
@@ -134,14 +134,14 @@ type HTTPClient interface {
|
||||
Post(url, contentType string, body io.Reader) (resp *http.Response, err error)
|
||||
}
|
||||
|
||||
// SetRequestModifications sets the ProxyChain's request modifers
|
||||
// SetRequestModifications sets the ProxyChain's request modifiers
|
||||
// the modifier will not fire until ProxyChain.Execute() is run.
|
||||
func (chain *ProxyChain) SetRequestModifications(mods ...RequestModification) *ProxyChain {
|
||||
chain.requestModifications = mods
|
||||
return chain
|
||||
}
|
||||
|
||||
// AddRequestModifications adds more request modifers to the ProxyChain
|
||||
// AddRequestModifications adds more request modifiers to the ProxyChain
|
||||
// the modifier will not fire until ProxyChain.Execute() is run.
|
||||
func (chain *ProxyChain) AddRequestModifications(mods ...RequestModification) *ProxyChain {
|
||||
chain.requestModifications = append(chain.requestModifications, mods...)
|
||||
@@ -162,7 +162,7 @@ func (chain *ProxyChain) AddOnceResponseModifications(mods ...ResponseModificati
|
||||
return chain
|
||||
}
|
||||
|
||||
// AddResponseModifications sets the ProxyChain's response modifers
|
||||
// AddResponseModifications sets the ProxyChain's response modifiers
|
||||
// the modifier will not fire until ProxyChain.Execute() is run.
|
||||
func (chain *ProxyChain) AddResponseModifications(mods ...ResponseModification) *ProxyChain {
|
||||
chain.responseModifications = mods
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"strings"
|
||||
@@ -1,8 +1,8 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/requestmodifers/bot"
|
||||
"ladder/proxychain/requestmodifiers/bot"
|
||||
)
|
||||
|
||||
// MasqueradeAsGoogleBot modifies user agent and x-forwarded for
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
//"net/http"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"regexp"
|
||||
|
||||
"ladder/proxychain"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
)
|
||||
|
||||
const archivistUrl string = "https://archive.is/latest"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
@@ -1,11 +1,11 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"regexp"
|
||||
|
||||
"ladder/proxychain"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
)
|
||||
|
||||
const waybackUrl string = "https://web.archive.org/web/"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
// removed due to using a different TLS spoofing technique
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,10 +1,10 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"ladder/proxychain"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
)
|
||||
|
||||
// SpoofReferrer modifies the referrer header.
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,11 +1,11 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
tx "ladder/proxychain/responsemodifers"
|
||||
tx "ladder/proxychain/responsemodifiers"
|
||||
)
|
||||
|
||||
// https://github.com/faisalman/ua-parser-js/tree/master
|
||||
@@ -1,4 +1,4 @@
|
||||
package requestmodifers
|
||||
package requestmodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/markusmobius/go-trafilatura"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifers/api"
|
||||
"ladder/proxychain/responsemodifiers/api"
|
||||
)
|
||||
|
||||
// APIContent creates an JSON representation of the article and returns it as an API response.
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"net/url"
|
||||
"testing"
|
||||
|
||||
"ladder/proxychain/responsemodifers/api"
|
||||
"ladder/proxychain/responsemodifiers/api"
|
||||
)
|
||||
|
||||
func TestCreateAPIErrReader(t *testing.T) {
|
||||
@@ -1,11 +1,11 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifers/rewriters"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
)
|
||||
|
||||
//go:embed block_element_removal.js
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -1,11 +1,11 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifers/rewriters"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
)
|
||||
|
||||
// injectScript modifies HTTP responses
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"ladder/proxychain"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifers/rewriters"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
)
|
||||
|
||||
//go:embed patch_dynamic_resource_urls.js
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
"embed"
|
||||
@@ -20,7 +20,7 @@ var rules domainRules
|
||||
func init() {
|
||||
err := json.Unmarshal([]byte(mappingJSON), &rules)
|
||||
if err != nil {
|
||||
log.Printf("[ERROR]: PatchTrackerScripts: failed to deserialize ladder/proxychain/responsemodifers/vendor/ddg-tracker-surrogates/mapping.json")
|
||||
log.Printf("[ERROR]: PatchTrackerScripts: failed to deserialize ladder/proxychain/responsemodifiers/vendor/ddg-tracker-surrogates/mapping.json")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package responsemodifers
|
||||
package responsemodifiers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"ladder/proxychain"
|
||||
"ladder/proxychain/responsemodifers/rewriters"
|
||||
"ladder/proxychain/responsemodifiers/rewriters"
|
||||
)
|
||||
|
||||
// RewriteHTMLResourceURLs modifies HTTP responses
|
||||
Reference in New Issue
Block a user