-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1a71b9
commit bced3c5
Showing
13 changed files
with
116 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...resources/static/templates/BlindSQLInjectionVulnerability/LEVEL_1/SQLInjection_Level1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/resources/static/templates/CommandInjection/LEVEL_1/CI_Level1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ci_level_1 { | ||
color: black; | ||
text-align: center; | ||
} | ||
|
||
#pingUtilityResponse { | ||
font-size: 15px; | ||
} | ||
|
||
#pingUtility { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
#heading { | ||
font-size: 20px; | ||
} | ||
|
||
#input { | ||
font-size: 15px; | ||
} | ||
|
||
#pingBtn { | ||
background: blueviolet; | ||
display: inline-block; | ||
padding: 8px 8px; | ||
margin: 10px; | ||
border: 2px solid transparent; | ||
border-radius: 3px; | ||
transition: 0.2s opacity; | ||
color: #FFF; | ||
font-size: 12px; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/resources/static/templates/CommandInjection/LEVEL_1/CI_Level1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="ci_level_1"> | ||
<div> | ||
<div id="pingUtility"> | ||
<div id="heading">Welcome to Ping utility.</div> | ||
<div id="input">please enter IP address: | ||
<input type="text" id="ipaddress"/> | ||
<button id="pingBtn">Click here</button> | ||
</div> | ||
</div> | ||
<div id="pingUtilityResponse"> | ||
</div> | ||
</div> | ||
</div> |
17 changes: 17 additions & 0 deletions
17
src/main/resources/static/templates/CommandInjection/LEVEL_1/CI_Level1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function addingEventListenerToPingButton() { | ||
document | ||
.getElementById("pingBtn") | ||
.addEventListener("click", function() { | ||
let url = getUrlForVulnerabilityLevel(); | ||
doGetAjaxCall( | ||
pingUtilityCallback, | ||
url + "?ipaddress=" + document.getElementById("ipaddress").value, | ||
true | ||
); | ||
}); | ||
} | ||
addingEventListenerToPingButton(); | ||
|
||
function pingUtilityCallback(data) { | ||
document.getElementById("pingUtilityResponse").innerHTML = data.content; | ||
} |
3 changes: 1 addition & 2 deletions
3
...rces/static/templates/ErrorBasedSQLInjectionVulnerability/LEVEL_1/SQLInjection_Level1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...rces/static/templates/UnionBasedSQLInjectionVulnerability/LEVEL_1/SQLInjection_Level1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters