Skip to content

Commit 5a8c84c

Browse files
authored
Merge pull request honze-net#4 from SvenTo/master
Added no-referrer meta tag and subresource integrity
2 parents 818ca7f + 07f16fd commit 5a8c84c

File tree

2 files changed

+34
-11
lines changed

2 files changed

+34
-11
lines changed

README.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
# nmap-bootstrap-xsl
2+
23
A Nmap XSL implementation with Bootstrap.
4+
35
## How to use
4-
Add the nmap-bootstrap.xsl as stylesheet to your Nmap scan. For example: `nmap -sS -T4 -A -sC -oA scanme --stylesheet https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl scanme.nmap.org scanme2.nmap.org`
5-
Open the scanme.xml with your Webbrowser. It should look like the [scanme.html sample report](http://htmlpreview.github.io/?https://github.com/honze-net/nmap-bootstrap-xsl/blob/master/scanme.html).
6-
Alternatively you can transform the xml to html with `xsltproc -o scanme.html nmap-bootstrap.xsl scanme.xml`. You will need to download the nmap-bootstrap.xsl beforehand.
7-
## Old scans
8-
You can also format old scans with the xsl stylesheet. Insert
9-
```<?xml-stylesheet href="https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl" type="text/xsl"?>```
10-
after `<!DOCTYPE nmaprun>`.
116

7+
- Add the `nmap-bootstrap.xsl` as stylesheet to your Nmap scan.
8+
- Example:
9+
10+
```sh
11+
nmap -sS -T4 -A -sC -oA scanme --stylesheet https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl scanme.nmap.org scanme2.nmap.org
12+
```
13+
14+
- Open the scanme.xml with your Web browser. It should look like the [`scanme.html sample report`](http://htmlpreview.github.io/?https://github.com/honze-net/nmap-bootstrap-xsl/blob/master/scanme.html).
15+
- Alternatively you can transform the xml to html with
16+
17+
```sh
18+
xsltproc -o scanme.html nmap-bootstrap.xsl scanme.xml
19+
```
20+
21+
- You will need to download the nmap-bootstrap.xsl beforehand.
1222

23+
## Old scans
24+
25+
- You can also format old scans with the xsl stylesheet.
26+
- Insert `<?xml-stylesheet href="https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl" type="text/xsl"?>` after `<!DOCTYPE nmaprun>`.
1327

1428
## Screenshots
29+
1530
![scanme screenshot 1](https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/scanme-screenshot1.png)
31+
1632
![scanme screenshot 2](https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/scanme-screenshot2.png)
33+
1734
![scanme screenshot 2](https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/scanme-screenshot3.png)
35+
36+
## Demos
37+
38+
- [`HackTheBox - Poison on YouTube`](https://www.youtube.com/watch?v=rs4zEwONzzk&t=56s)

nmap-bootstrap.xsl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ Andreas Hontzia (@honze_net)
99
<xsl:template match="/">
1010
<html lang="en">
1111
<head>
12+
<meta name="referrer" content="no-referrer" />
13+
1214
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"/>
1315
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"/>
14-
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css"/>
15-
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
16-
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
17-
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js"></script>
16+
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css" type="text/css" integrity="sha384-VEpVDzPR2x8NbTDZ8NFW4AWbtT2g/ollEzX/daZdW/YvUBlbgVtsxMftnJ84k0Cn" crossorigin="anonymous" />
17+
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha384-fJU6sGmyn07b+uD1nMk7/iSb4yvaowcueiQhfVgQuD98rfva8mcr1eSvjchfpMrH" crossorigin="anonymous"></script>
18+
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" integrity="sha384-rgWRqC0OFPisxlUvl332tiM/qmaNxnlY46eksSZD84t+s2vZlqGeHrncwIRX7CGp" crossorigin="anonymous"></script>
19+
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" integrity="sha384-7PXRkl4YJnEpP8uU4ev9652TTZSxrqC8uOpcV1ftVEC7LVyLZqqDUAaq+Y+lGgr9" crossorigin="anonymous"></script>
1820
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
1921
<style>
2022
.target:before {

0 commit comments

Comments
 (0)