Skip to content
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
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 May 17, 2023
cbb4c54
rename AddHeaderXForwardForRandomIP.js to AddHeaderXForwardedForRando…
timruff May 17, 2023
9c8550f
remove name and add comment origin script
timruff May 17, 2023
62827ce
add comment name
timruff May 17, 2023
a52e39d
add file pitchWork.py in httpfuzzerprocessor
timruff May 20, 2023
184ee22
correction to pitchwork.py, add multiple payloads gestion
timruff May 20, 2023
89f3feb
correction syntax
timruff May 20, 2023
2d4f87d
add fileActions.py in standalone
timruff May 21, 2023
2ca32f9
add filtersResultWithStringOnBodyResponse.py
timruff May 22, 2023
6193f5d
fix issue in filtersResultWithSringOnBodyResonse.py
timruff May 23, 2023
8246fb7
add function in fileActions.py
timruff May 23, 2023
ef64087
add RTT_time_filter.py to httpfuzzerprocessor
timruff Jun 2, 2023
ea7c1a6
add OAST_Listen_Burp_Colaborator.py to standalone
timruff Jun 4, 2023
a126174
remove decode(utf-8) in OAST_Listen_Burp_Colaborator.py
timruff Jun 4, 2023
aaed85c
OAST_Listen_Burp_Colaborator.py add decode
timruff Jun 5, 2023
eb53c3d
add full_HTML_encode.py to payloadprocessor
timruff Jun 5, 2023
e13d5fc
resolve issue to fileActions in Json tab
timruff Jun 8, 2023
c1028bc
add 2FABypassBruteForceLabAcademy.zst to standalone
timruff Jun 14, 2023
088dbe9
add feature Encode line file in MD5 and Inserting string before line …
timruff Jun 15, 2023
f668db1
add infinite_money_logic_flaw.zst
timruff Jun 28, 2023
5d4b10c
Change RTT_time_filter.py to version 1.1
timruff Jun 28, 2023
0be7fa4
Change RTT_time_filter.py add processResult
timruff Jun 28, 2023
171120f
Change sentance in fileStringResilt.py
timruff Jun 28, 2023
c0f239f
Change comment to file pitchWork.py
timruff Jun 28, 2023
907b08d
Change sentence in OAST_Listen_Burp_Colaboratory.py
timruff Jun 28, 2023
b188c61
Add decodeHTMLEntities.js and encodeHTMLEntities.js
timruff Jul 19, 2023
587d32f
Add CSRF_poc_generator.js and CSRF_poc_generator_auto-submit.js
timruff Jul 24, 2023
ddc6190
Add CSRF_poc_generator_full-URL-enconfing.js and CSRF_poc_generator_f…
timruff Jul 25, 2023
09f6f72
fix issues to file CSRF
timruff Jul 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
292 changes: 292 additions & 0 deletions encode-decode/decodeHTMLEntitities.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
# @author Timothée Ruffenach
# Version 1.0
# decode HTML Entities
Comment on lines +1 to +3
Copy link
Member

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).


/**
* 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 = {
"'": "'",
"<": "&lt;",
">": "&gt;",
" ": "&nbsp;",
"¡": "&iexcl;",
"¢": "&cent;",
"£": "&pound;",
"¤": "&curren;",
"¥": "&yen;",
"¦": "&brvbar;",
"§": "&sect;",
"¨": "&uml;",
"©": "&copy;",
"ª": "&ordf;",
"«": "&laquo;",
"¬": "&not;",
"®": "&reg;",
"¯": "&macr;",
"°": "&deg;",
"±": "&plusmn;",
"²": "&sup2;",
"³": "&sup3;",
"´": "&acute;",
"µ": "&micro;",
"¶": "&para;",
"·": "&middot;",
"¸": "&cedil;",
"¹": "&sup1;",
"º": "&ordm;",
"»": "&raquo;",
"¼": "&frac14;",
"½": "&frac12;",
"¾": "&frac34;",
"¿": "&iquest;",
"À": "&Agrave;",
"Á": "&Aacute;",
"Â": "&Acirc;",
"Ã": "&Atilde;",
"Ä": "&Auml;",
"Å": "&Aring;",
"Æ": "&AElig;",
"Ç": "&Ccedil;",
"È": "&Egrave;",
"É": "&Eacute;",
"Ê": "&Ecirc;",
"Ë": "&Euml;",
"Ì": "&Igrave;",
"Í": "&Iacute;",
"Î": "&Icirc;",
"Ï": "&Iuml;",
"Ð": "&ETH;",
"Ñ": "&Ntilde;",
"Ò": "&Ograve;",
"Ó": "&Oacute;",
"Ô": "&Ocirc;",
"Õ": "&Otilde;",
"Ö": "&Ouml;",
"×": "&times;",
"Ø": "&Oslash;",
"Ù": "&Ugrave;",
"Ú": "&Uacute;",
"Û": "&Ucirc;",
"Ü": "&Uuml;",
"Ý": "&Yacute;",
"Þ": "&THORN;",
"ß": "&szlig;",
"à": "&agrave;",
"á": "&aacute;",
"â": "&acirc;",
"ã": "&atilde;",
"ä": "&auml;",
"å": "&aring;",
"æ": "&aelig;",
"ç": "&ccedil;",
"è": "&egrave;",
"é": "&eacute;",
"ê": "&ecirc;",
"ë": "&euml;",
"ì": "&igrave;",
"í": "&iacute;",
"î": "&icirc;",
"ï": "&iuml;",
"ð": "&eth;",
"ñ": "&ntilde;",
"ò": "&ograve;",
"ó": "&oacute;",
"ô": "&ocirc;",
"õ": "&otilde;",
"ö": "&ouml;",
"÷": "&divide;",
"ø": "&oslash;",
"ù": "&ugrave;",
"ú": "&uacute;",
"û": "&ucirc;",
"ü": "&uuml;",
"ý": "&yacute;",
"þ": "&thorn;",
"ÿ": "&yuml;",
"Œ": "&OElig;",
"œ": "&oelig;",
"Š": "&Scaron;",
"š": "&scaron;",
"Ÿ": "&Yuml;",
"ƒ": "&fnof;",
"ˆ": "&circ;",
"˜": "&tilde;",
"Α": "&Alpha;",
"Β": "&Beta;",
"Γ": "&Gamma;",
"Δ": "&Delta;",
"Ε": "&Epsilon;",
"Ζ": "&Zeta;",
"Η": "&Eta;",
"Θ": "&Theta;",
"Ι": "&Iota;",
"Κ": "&Kappa;",
"Λ": "&Lambda;",
"Μ": "&Mu;",
"Ν": "&Nu;",
"Ξ": "&Xi;",
"Ο": "&Omicron;",
"Π": "&Pi;",
"Ρ": "&Rho;",
"Σ": "&Sigma;",
"Τ": "&Tau;",
"Υ": "&Upsilon;",
"Φ": "&Phi;",
"Χ": "&Chi;",
"Ψ": "&Psi;",
"Ω": "&Omega;",
"α": "&alpha;",
"β": "&beta;",
"γ": "&gamma;",
"δ": "&delta;",
"ε": "&epsilon;",
"ζ": "&zeta;",
"η": "&eta;",
"θ": "&theta;",
"ι": "&iota;",
"κ": "&kappa;",
"λ": "&lambda;",
"μ": "&mu;",
"ν": "&nu;",
"ξ": "&xi;",
"ο": "&omicron;",
"π": "&pi;",
"ρ": "&rho;",
"ς": "&sigmaf;",
"σ": "&sigma;",
"τ": "&tau;",
"υ": "&upsilon;",
"φ": "&phi;",
"χ": "&chi;",
"ψ": "&psi;",
"ω": "&omega;",
"ϑ": "&thetasym;",
"ϒ": "&Upsih;",
"ϖ": "&piv;",
"–": "&ndash;",
"—": "&mdash;",
"‘": "&lsquo;",
"’": "&rsquo;",
"‚": "&sbquo;",
"“": "&ldquo;",
"”": "&rdquo;",
"„": "&bdquo;",
"†": "&dagger;",
"‡": "&Dagger;",
"•": "&bull;",
"…": "&hellip;",
"‰": "&permil;",
"′": "&prime;",
"″": "&Prime;",
"‹": "&lsaquo;",
"›": "&rsaquo;",
"‾": "&oline;",
"⁄": "&frasl;",
"€": "&euro;",
"ℑ": "&image;",
"℘": "&weierp;",
"ℜ": "&real;",
"™": "&trade;",
"ℵ": "&alefsym;",
"←": "&larr;",
"↑": "&uarr;",
"→": "&rarr;",
"↓": "&darr;",
"↔": "&harr;",
"↵": "&crarr;",
"⇐": "&lArr;",
"⇑": "&UArr;",
"⇒": "&rArr;",
"⇓": "&dArr;",
"⇔": "&hArr;",
"∀": "&forall;",
"∂": "&part;",
"∃": "&exist;",
"∅": "&empty;",
"∇": "&nabla;",
"∈": "&isin;",
"∉": "&notin;",
"∋": "&ni;",
"∏": "&prod;",
"∑": "&sum;",
"−": "&minus;",
"∗": "&lowast;",
"√": "&radic;",
"∝": "&prop;",
"∞": "&infin;",
"∠": "&ang;",
"∧": "&and;",
"∨": "&or;",
"∩": "&cap;",
"∪": "&cup;",
"∫": "&int;",
"∴": "&there4;",
"∼": "&sim;",
"≅": "&cong;",
"≈": "&asymp;",
"≠": "&ne;",
"≡": "&equiv;",
"≤": "&le;",
"≥": "&ge;",
"⊂": "&sub;",
"⊃": "&sup;",
"⊄": "&nsub;",
"⊆": "&sube;",
"⊇": "&supe;",
"⊕": "&oplus;",
"⊗": "&otimes;",
"⊥": "&perp;",
"⋅": "&sdot;",
"⌈": "&lceil;",
"⌉": "&rceil;",
"⌊": "&lfloor;",
"⌋": "&rfloor;",
"⟨": "&lang;",
"⟩": "&rang;",
"◊": "&loz;",
"♠": "&spades;",
"♣": "&clubs;",
"♥": "&hearts;",
"♦": "&diams;"
};

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(/&quot;/g, '"');
string = string.replace(/&amp;/g, '&');
return string;
}

HtmlEntities.encode = function(string) {
var entityMap = HtmlEntities.map;
string = string.replace(/&/g, '&amp;');
string = string.replace(/"/g, '&quot;');
for (var key in entityMap) {
var entity = entityMap[key];
var regex = new RegExp(key, 'g');
string = string.replace(regex, entity);
}
return string;
}


Loading