-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to solve burp labs or for bug bounty #340
Open
timruff
wants to merge
29
commits into
zaproxy:main
Choose a base branch
from
timruff:contribution
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
93a1322
add file AddHeaderXFowardForRandomIP.js to httpsender
timruff cbb4c54
rename AddHeaderXForwardForRandomIP.js to AddHeaderXForwardedForRando…
timruff 9c8550f
remove name and add comment origin script
timruff 62827ce
add comment name
timruff a52e39d
add file pitchWork.py in httpfuzzerprocessor
timruff 184ee22
correction to pitchwork.py, add multiple payloads gestion
timruff 89f3feb
correction syntax
timruff 2d4f87d
add fileActions.py in standalone
timruff 2ca32f9
add filtersResultWithStringOnBodyResponse.py
timruff 6193f5d
fix issue in filtersResultWithSringOnBodyResonse.py
timruff 8246fb7
add function in fileActions.py
timruff ef64087
add RTT_time_filter.py to httpfuzzerprocessor
timruff ea7c1a6
add OAST_Listen_Burp_Colaborator.py to standalone
timruff a126174
remove decode(utf-8) in OAST_Listen_Burp_Colaborator.py
timruff aaed85c
OAST_Listen_Burp_Colaborator.py add decode
timruff eb53c3d
add full_HTML_encode.py to payloadprocessor
timruff e13d5fc
resolve issue to fileActions in Json tab
timruff c1028bc
add 2FABypassBruteForceLabAcademy.zst to standalone
timruff 088dbe9
add feature Encode line file in MD5 and Inserting string before line …
timruff f668db1
add infinite_money_logic_flaw.zst
timruff 5d4b10c
Change RTT_time_filter.py to version 1.1
timruff 0be7fa4
Change RTT_time_filter.py add processResult
timruff 171120f
Change sentance in fileStringResilt.py
timruff c0f239f
Change comment to file pitchWork.py
timruff 907b08d
Change sentence in OAST_Listen_Burp_Colaboratory.py
timruff b188c61
Add decodeHTMLEntities.js and encodeHTMLEntities.js
timruff 587d32f
Add CSRF_poc_generator.js and CSRF_poc_generator_auto-submit.js
timruff ddc6190
Add CSRF_poc_generator_full-URL-enconfing.js and CSRF_poc_generator_f…
timruff 09f6f72
fix issues to file CSRF
timruff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
# @author Timothée Ruffenach | ||
# Version 1.0 | ||
# decode HTML Entities | ||
|
||
/** | ||
* Process the input value and return the encoded/decoded/hashed etc. value | ||
* | ||
* Use helper.newError("Error Description") to provide an error description | ||
* inside the result view. | ||
* | ||
* @param {EncodeDecodeScriptHelper} helper - A helper object with various utility methods. | ||
* For more details see https://github.com/zaproxy/zap-extensions/tree/main/addOns/encoder/src/main/java/org/zaproxy/addon/encoder/processors/script/EncodeDecodeScriptHelper.java | ||
* @param {String} value - The input value | ||
* @returns {EncodeDecodeResult} - The value that was encoded/decoded/hashed etc. easiest via helper.newResult(result). | ||
*/ | ||
function process(helper, value){ | ||
return helper.newResult(HtmlEntities.decode(value)); | ||
} | ||
|
||
var HtmlEntities = function() {}; | ||
|
||
HtmlEntities.map = { | ||
"'": "'", | ||
"<": "<", | ||
">": ">", | ||
" ": " ", | ||
"¡": "¡", | ||
"¢": "¢", | ||
"£": "£", | ||
"¤": "¤", | ||
"¥": "¥", | ||
"¦": "¦", | ||
"§": "§", | ||
"¨": "¨", | ||
"©": "©", | ||
"ª": "ª", | ||
"«": "«", | ||
"¬": "¬", | ||
"®": "®", | ||
"¯": "¯", | ||
"°": "°", | ||
"±": "±", | ||
"²": "²", | ||
"³": "³", | ||
"´": "´", | ||
"µ": "µ", | ||
"¶": "¶", | ||
"·": "·", | ||
"¸": "¸", | ||
"¹": "¹", | ||
"º": "º", | ||
"»": "»", | ||
"¼": "¼", | ||
"½": "½", | ||
"¾": "¾", | ||
"¿": "¿", | ||
"À": "À", | ||
"Á": "Á", | ||
"Â": "Â", | ||
"Ã": "Ã", | ||
"Ä": "Ä", | ||
"Å": "Å", | ||
"Æ": "Æ", | ||
"Ç": "Ç", | ||
"È": "È", | ||
"É": "É", | ||
"Ê": "Ê", | ||
"Ë": "Ë", | ||
"Ì": "Ì", | ||
"Í": "Í", | ||
"Î": "Î", | ||
"Ï": "Ï", | ||
"Ð": "Ð", | ||
"Ñ": "Ñ", | ||
"Ò": "Ò", | ||
"Ó": "Ó", | ||
"Ô": "Ô", | ||
"Õ": "Õ", | ||
"Ö": "Ö", | ||
"×": "×", | ||
"Ø": "Ø", | ||
"Ù": "Ù", | ||
"Ú": "Ú", | ||
"Û": "Û", | ||
"Ü": "Ü", | ||
"Ý": "Ý", | ||
"Þ": "Þ", | ||
"ß": "ß", | ||
"à": "à", | ||
"á": "á", | ||
"â": "â", | ||
"ã": "ã", | ||
"ä": "ä", | ||
"å": "å", | ||
"æ": "æ", | ||
"ç": "ç", | ||
"è": "è", | ||
"é": "é", | ||
"ê": "ê", | ||
"ë": "ë", | ||
"ì": "ì", | ||
"í": "í", | ||
"î": "î", | ||
"ï": "ï", | ||
"ð": "ð", | ||
"ñ": "ñ", | ||
"ò": "ò", | ||
"ó": "ó", | ||
"ô": "ô", | ||
"õ": "õ", | ||
"ö": "ö", | ||
"÷": "÷", | ||
"ø": "ø", | ||
"ù": "ù", | ||
"ú": "ú", | ||
"û": "û", | ||
"ü": "ü", | ||
"ý": "ý", | ||
"þ": "þ", | ||
"ÿ": "ÿ", | ||
"Œ": "Œ", | ||
"œ": "œ", | ||
"Š": "Š", | ||
"š": "š", | ||
"Ÿ": "Ÿ", | ||
"ƒ": "ƒ", | ||
"ˆ": "ˆ", | ||
"˜": "˜", | ||
"Α": "Α", | ||
"Β": "Β", | ||
"Γ": "Γ", | ||
"Δ": "Δ", | ||
"Ε": "Ε", | ||
"Ζ": "Ζ", | ||
"Η": "Η", | ||
"Θ": "Θ", | ||
"Ι": "Ι", | ||
"Κ": "Κ", | ||
"Λ": "Λ", | ||
"Μ": "Μ", | ||
"Ν": "Ν", | ||
"Ξ": "Ξ", | ||
"Ο": "Ο", | ||
"Π": "Π", | ||
"Ρ": "Ρ", | ||
"Σ": "Σ", | ||
"Τ": "Τ", | ||
"Υ": "Υ", | ||
"Φ": "Φ", | ||
"Χ": "Χ", | ||
"Ψ": "Ψ", | ||
"Ω": "Ω", | ||
"α": "α", | ||
"β": "β", | ||
"γ": "γ", | ||
"δ": "δ", | ||
"ε": "ε", | ||
"ζ": "ζ", | ||
"η": "η", | ||
"θ": "θ", | ||
"ι": "ι", | ||
"κ": "κ", | ||
"λ": "λ", | ||
"μ": "μ", | ||
"ν": "ν", | ||
"ξ": "ξ", | ||
"ο": "ο", | ||
"π": "π", | ||
"ρ": "ρ", | ||
"ς": "ς", | ||
"σ": "σ", | ||
"τ": "τ", | ||
"υ": "υ", | ||
"φ": "φ", | ||
"χ": "χ", | ||
"ψ": "ψ", | ||
"ω": "ω", | ||
"ϑ": "ϑ", | ||
"ϒ": "&Upsih;", | ||
"ϖ": "ϖ", | ||
"–": "–", | ||
"—": "—", | ||
"‘": "‘", | ||
"’": "’", | ||
"‚": "‚", | ||
"“": "“", | ||
"”": "”", | ||
"„": "„", | ||
"†": "†", | ||
"‡": "‡", | ||
"•": "•", | ||
"…": "…", | ||
"‰": "‰", | ||
"′": "′", | ||
"″": "″", | ||
"‹": "‹", | ||
"›": "›", | ||
"‾": "‾", | ||
"⁄": "⁄", | ||
"€": "€", | ||
"ℑ": "ℑ", | ||
"℘": "℘", | ||
"ℜ": "ℜ", | ||
"™": "™", | ||
"ℵ": "ℵ", | ||
"←": "←", | ||
"↑": "↑", | ||
"→": "→", | ||
"↓": "↓", | ||
"↔": "↔", | ||
"↵": "↵", | ||
"⇐": "⇐", | ||
"⇑": "&UArr;", | ||
"⇒": "⇒", | ||
"⇓": "⇓", | ||
"⇔": "⇔", | ||
"∀": "∀", | ||
"∂": "∂", | ||
"∃": "∃", | ||
"∅": "∅", | ||
"∇": "∇", | ||
"∈": "∈", | ||
"∉": "∉", | ||
"∋": "∋", | ||
"∏": "∏", | ||
"∑": "∑", | ||
"−": "−", | ||
"∗": "∗", | ||
"√": "√", | ||
"∝": "∝", | ||
"∞": "∞", | ||
"∠": "∠", | ||
"∧": "∧", | ||
"∨": "∨", | ||
"∩": "∩", | ||
"∪": "∪", | ||
"∫": "∫", | ||
"∴": "∴", | ||
"∼": "∼", | ||
"≅": "≅", | ||
"≈": "≈", | ||
"≠": "≠", | ||
"≡": "≡", | ||
"≤": "≤", | ||
"≥": "≥", | ||
"⊂": "⊂", | ||
"⊃": "⊃", | ||
"⊄": "⊄", | ||
"⊆": "⊆", | ||
"⊇": "⊇", | ||
"⊕": "⊕", | ||
"⊗": "⊗", | ||
"⊥": "⊥", | ||
"⋅": "⋅", | ||
"⌈": "⌈", | ||
"⌉": "⌉", | ||
"⌊": "⌊", | ||
"⌋": "⌋", | ||
"⟨": "⟨", | ||
"⟩": "⟩", | ||
"◊": "◊", | ||
"♠": "♠", | ||
"♣": "♣", | ||
"♥": "♥", | ||
"♦": "♦" | ||
}; | ||
|
||
HtmlEntities.decode = function(string) { | ||
var entityMap = HtmlEntities.map; | ||
for (var key in entityMap) { | ||
var entity = entityMap[key]; | ||
var regex = new RegExp(entity, 'g'); | ||
string = string.replace(regex, key); | ||
} | ||
string = string.replace(/"/g, '"'); | ||
string = string.replace(/&/g, '&'); | ||
return string; | ||
} | ||
|
||
HtmlEntities.encode = function(string) { | ||
var entityMap = HtmlEntities.map; | ||
string = string.replace(/&/g, '&'); | ||
string = string.replace(/"/g, '"'); | ||
for (var key in entityMap) { | ||
var entity = entityMap[key]; | ||
var regex = new RegExp(key, 'g'); | ||
string = string.replace(regex, entity); | ||
} | ||
return string; | ||
} | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not valid comment for JavaScript (there are others that need to be corrected).