File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ import datetime
2
+
1
3
def read_text (path ):
2
4
with open (path ) as file :
3
5
return file .read ()
4
6
5
7
6
8
def inline_assets (html , css , js ):
9
+ compilation_time = datetime .datetime .now ().strftime ("%Y-%m-%d %H:%M" )
10
+ page = html .replace (f'<span id="tool-version"></span>' , '<span id="tool-version">compiled on {compilation_time}<strong></strong></span>' )
7
11
page = html .replace ('<link rel="stylesheet" href="style.css">' , '' )
8
12
page = page .replace ('</head>' , f'<style>\n { css } \n </style>\n </head>' )
9
13
page = page .replace ('<script src="app.js"></script>' , '' )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <h1><a href="?">SQLMap Command Builder</a></h1>
16
16
</ p >
17
17
18
18
< p >
19
- < a href ="https://github.com/vizzdoom/sqlmap-command-builder " target ="_blank "> Github Repository</ a > for < a target ="_blank " href ="https://github.com/sqlmapproject/sqlmap/releases "> SQLMap 1.9.4</ a > < br />
19
+ < a href ="https://github.com/vizzdoom/sqlmap-command-builder " target ="_blank "> Github Repository</ a > < span id =" tool-version " > </ span > for < a target ="_blank " href ="https://github.com/sqlmapproject/sqlmap/releases "> SQLMap 1.9.4</ a > < br />
20
20
vizzdoom/at/gmail/dot/com
21
21
</ p >
22
22
</ header >
You can’t perform that action at this time.
0 commit comments