Skip to content

Instantly share code, notes, and snippets.

View harshitm98's full-sized avatar
Focusing

Harshit Maheshwari harshitm98

Focusing
View GitHub Profile
<img style="display:none;" onload="show_login_status('Github', true)"
onerror="show_login_status('Github', false)"
src="https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffavicon.ico%3Fid%3D1" />
<script>
function show_login_status(website_name, status) {
if (status) {
console.log("Logged into : " + website_name);
} else {
console.log("Not logged into : " + website_name);
Java.perform(function (){
var HookDetector = Java.use('org.nowsecure.cybertruck.detections.HookDetector');
HookDetector.isFridaServerInDevice.implementation = function(){
console.log("[->] HookDetector bypassed...");
return false;
}
});
Java.perform(function (){
var Challenge2 = Java.use('org.nowsecure.cybertruck.keygenerators.a');
Challenge2.a.overload('[B', '[B').implementation = function(b1, b2){
var returnEncryptedText = this.a(b1, b2);
console.log("[->] Flag2 Captured...");
send(returnEncryptedText);
return returnEncryptedText;
}
});
import frida, sys
def append_zero(hex):
if len(hex) == 1:
return '0'+hex
return hex
def on_message(message, data):
if message['type'] == 'send':
import string
r = "\000dslp}oQ\000 dks$|M\000h +AYQg\000P*!M$gQ\000"
r = list(str(r))
r.reverse()
for i in range(len(r)):
if i % 8 == 0:
print("_", end="")
continue
p = "V@]EAASB\022WZF\022e,a$7(&am2(3.\003"
p = list(str(p))
for i in range(len(p) // 2):
p[i] = chr(ord(p[i]) ^ 0x32)
p[len(p) // 2 + 1 + i] = chr(ord(p[len(p) // 2 + 1 + i]) ^ 0x41)
p.reverse()
print("".join(p))