Minor improvement

This commit is contained in:
Miroslav Stampar
2020-08-31 11:55:14 +02:00
parent 95b9a47c6f
commit ea5ae44b6c
12 changed files with 15 additions and 5 deletions
Binary file not shown.
+3 -1
View File
@@ -1 +1,3 @@
:ùà&³]´_i˜;)0DnÙză’M¶¹-¾¸ñx´q¢=‡M?µIø™ŽRòcžo|ò·£öý³Yвm#²â9YÜUÇ…g©SÏ%e}ëúYkP…ê€ðù”G¿Áõ�hð ä³™�„Ï3ô à¡ÝÄtØ�ü²fÁ=›K©8p)¾�?E*_Dï}4—Óž¥I×�Ã¥’‘fÿF¼ì'{³$ÒŸèi0Úu Íf<#ë^CGàPOMxwæÂ&û´é»Î:¹ß’‡‹ „‡N­èŽ2ýtÚ4�Å{rÜ—Ù]©òÎ6�®Î¦N¿«ØMÎ\~TꈮCËGªŸØ4·ë3%¼¡tì âÅoÜž´æ9WìЇ®�¥Ò‰Í{™ÿÉd¯jGÍõ­WÑžú²]„?kÝõ{äŽÀI¬îûÎQ!¿^qVRã|ŠMÓ£bS¹°¶x•^Üõ÷â+„Óü�¸’! Òú.²‚4®Ë2O.l)™@�º…fUS¬Špm÷�¢j]"ãð[û”c&`Ü4ïˆ6aVü‘dSkÈœ
4Ûà9”8±a$´$:f;8ûzÛ¤÷Hî±+¡«§âS½âH@7ƒeçŠH~Ø\Ðc�H÷D¿•Úâ T&†
�m<•‡<Ôc<Ø–1Öí%zZŽÿcf©õ“G�¯še¿ÞÒõm¨ÒŸ†ŽÒ°eú‚à¾ú¡q›�¦Ð¡0¾k•i©'Wc,æ˜ i5L�+:µÓ�‚,ÒÅË“¾Žu©9êâd”A×Çà3E/Œ
öÃD<<Ì;FÖ|P!èà&ä“{ìãÆ •À�Ñô]Š¥N²Ïë7@õBö+ƒ“$ÒµÙBŽ—Ën…˜â¹]éÔEÖoÎCY1ïЦ2oÔTüàŽ:•ë,§¹ù| À¿ñ“Š�–æ&pcéˆ�˜±ºÁß²-—'ÿÖ?ª2OûÙ²D‡á¬¼„ L¸ð#ì¸8ßZú‘CõìQ>˜cy`~üoÜ2…­@S¦—Ó}ÍVêÙèñ}û…ò¯¸�i×¢ž�'ø´dA l6¾%ˆâ�+JJ@úõ&cÕ�½ XzÕÜDèÂpnþ4ð)í39^)ÐŽwž’
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -21,7 +21,7 @@ if sys.version_info >= (3, 0):
xrange = range
ord = lambda _: _
KEY = b"wXGWkn7KI0VhDOHS"
KEY = b"LGekORm7qYCsv39f"
def xor(message, key):
return b"".join(struct.pack('B', ord(message[i]) ^ ord(key[i % len(key)])) for i in range(len(message)))
+6 -2
View File
@@ -5,10 +5,14 @@
DIR=$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
cd $DIR/../../data/shell
find -regex ".*backdoor\.[a-z]*_" -or -regex ".*stager\.[a-z]*_" -type f -exec python ../../extra/cloak/cloak.py -d -i '{}' \;
find -regex ".*backdoor\.[a-z]*_" -type f -exec python ../../extra/cloak/cloak.py -d -i '{}' \;
find -regex ".*stager\.[a-z]*_" -type f -exec python ../../extra/cloak/cloak.py -d -i '{}' \;
cd $DIR/../cloak
sed -i 's/KEY = .*/KEY = b"'`python -c 'import random; import string; print("".join(random.sample(string.ascii_letters + string.digits, 16)))'`'"/g' cloak.py
cd $DIR/../../data/shell
find -regex ".*backdoor\.[a-z]*" -or -regex ".*stager\.[a-z]*" -type f -exec python ../../extra/cloak/cloak.py -i '{}' \;
find -regex ".*backdoor\.[a-z]*" -type f -exec python ../../extra/cloak/cloak.py -i '{}' \;
find -regex ".*stager\.[a-z]*" -type f -exec python ../../extra/cloak/cloak.py -i '{}' \;
git clean -f > /dev/null
+4
View File
@@ -5003,6 +5003,10 @@ def decloakToTemp(filename):
>>> openFile(_, "rb", encoding=None).read().startswith(b'<%')
True
>>> os.remove(_)
>>> _ = decloakToTemp(os.path.join(paths.SQLMAP_SHELL_PATH, "backdoors", "backdoor.asp_"))
>>> openFile(_, "rb", encoding=None).read().startswith(b'<%')
True
>>> os.remove(_)
"""
content = decloak(filename)
+1 -1
View File
@@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.4.8.20"
VERSION = "1.4.8.22"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)