| 1 |
{% extends "base.html" %} |
| 2 |
{% block title %}libinjection sqli tokens diagnostic{% end %} |
| 3 |
{% block body %} |
| 4 |
<h1>libinjection {{ version }} tokens diagnostics</h1> |
| 5 |
<p>Enter text to be analyzed in form below or directly modify the query string: </p> |
| 6 |
<form method="get"> |
| 7 |
<textarea class="form-control" name="id" rows="5">{{ formvalue }}</textarea><br/> |
| 8 |
<input class="btn" type="submit" name="type" value="fingerprints"></input> |
| 9 |
<input class="btn" type="submit" name="type" value="tokens"></input> |
| 10 |
</form> |
| 11 |
{% if len(formvalue) %} |
| 12 |
|
| 13 |
<hr/> |
| 14 |
<ul> |
| 15 |
{% for p in parsed %} |
| 16 |
<li> |
| 17 |
<a href="#{{ p['quote'] }}-{{ p['comment'] }}"> |
| 18 |
{{ p['quote']}} quotes / {{ p['comment'] }} comments |
| 19 |
</a> |
| 20 |
</li> |
| 21 |
{% end %} |
| 22 |
</ul> |
| 23 |
|
| 24 |
{% for p in parsed %} |
| 25 |
<a name="{{ p['quote'] }}-{{ p['comment'] }}"></a> |
| 26 |
{% if p['sqli'] %} |
| 27 |
|
| 28 |
<div class='red' style="width:100%; margin:0px"> |
| 29 |
{% else %} |
| 30 |
<div style="width:100%; maring:0px; background-color:inherit"> |
| 31 |
{% end %} |
| 32 |
<h2>{{ p['quote']}} quotes / {{ p['comment'] }} comments: SQLi {{ p['sqli'] }} </h2> |
| 33 |
|
| 34 |
<p>Fingerprint: {{ p['fingerprint'] }}</p> |
| 35 |
<div style="float:left; margin:0px; padding: 0px; width:50%; background-color:inherit"> |
| 36 |
|
| 37 |
<h4>Raw Tokens</h4> |
| 38 |
<table class="table table-condensed"> |
| 39 |
<tr><th>type</th><th>value</th></tr> |
| 40 |
{% for i in p['tokens'] %} |
| 41 |
<tr><td>{{ i[0] }}</td><td>{{ i[1] }}</tr> |
| 42 |
{% end %} |
| 43 |
</table> |
| 44 |
</div> |
| 45 |
<div style="float:left; margin: 0px;padding: 0px;width:50%;background-color:inherit"> |
| 46 |
<h4>Folded</h4> |
| 47 |
<table class="table table-condensed"> |
| 48 |
<tr><th>type</th><th>value</th></tr> |
| 49 |
{% for i in p['folds'] %} |
| 50 |
<tr><td>{{ i[0] }}</td><td>{{ i[1] }}</tr> |
| 51 |
{% end %} |
| 52 |
</table> |
| 53 |
</div> |
| 54 |
|
| 55 |
</div> |
| 56 |
<hr style="clear:both"> |
| 57 |
|
| 58 |
{% end %} |
| 59 |
{% end %} |
| 60 |
{% end %} |