This file contains hidden or 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
| const loadScript = url => new Promise(r => { | |
| const s = document.createElement('script'); | |
| s.src = url; | |
| s.onload = r; | |
| document.head.appendChild(s); | |
| }); | |
| const sanitize = path => path.replace(/["\0<>|?*]/g, '').replace(/\\/g, '/'); | |
| const getScriptUrls = () => { |
This file contains hidden or 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
| var PROXY_IP = "127.0.0.1"; | |
| var PROXY_PORT = 8080; | |
| var proxyBytes = PROXY_IP.split(".").map(Number); | |
| var proxyPortHi = (PROXY_PORT >> 8) & 0xff; | |
| var proxyPortLo = PROXY_PORT & 0xff; | |
| var connect = Module.getExportByName("libc.so", "connect"); | |
| Interceptor.attach(connect, { |
This file contains hidden or 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
| // frida -U -f com.example.app -l dump.js --no-pause | |
| var app = ObjC.classes.NSBundle.mainBundle(); | |
| var path = app.bundlePath().toString(); | |
| var name = app.infoDictionary().objectForKey_("CFBundleExecutable").toString(); | |
| var outDir = "/tmp/Payload/" + name + ".app"; | |
| var _open = new NativeFunction(Module.findExportByName(null, "open"), "int", ["pointer", "int", "int"]); | |
| var _write = new NativeFunction(Module.findExportByName(null, "write"), "int", ["int", "pointer", "int"]); | |
| var _close = new NativeFunction(Module.findExportByName(null, "close"), "int", ["int"]); | |
| var _lseek = new NativeFunction(Module.findExportByName(null, "lseek"), "int64", ["int", "int64", "int"]); |
This file contains hidden or 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
| API_KEY = "" | |
| EMAIL = "" | |
| PASSWORD = "" | |
| PHONE = "" | |
| BASE = "https://identitytoolkit.googleapis.com/v1" | |
| def post(url, data): | |
| r = requests.post(url, json=data) | |
| print(f"\n[{url.split('/')[-1].split('?')[0]}] {r.status_code}") | |
| print(r.json()) |
This file contains hidden or 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
| def removeduplicates_v1(lst): | |
| lst = set(lst) | |
| return list(lst) | |
| def removeduplicates_v2(lst): | |
| new_lst = [] | |
| for i in range((len(lst)-1)): | |
| if (lst[i] not in new_lst): | |
| new_lst.append(lst[i]) | |
| return new_lst | |
| eg = [1,2,3,4,1,2,3,4] |
This file contains hidden or 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
| def fibonnaci(x): | |
| if(x == 1): | |
| return 1 | |
| elif(x == 0): | |
| return 0 | |
| else: | |
| return fibonnaci(x -1) + fibonnaci(x -2) | |
| number = int(input("Please entre the number of term of fibonnaci number")) | |
| print("The number of ", number,"term of fibonnaci number is ", fibonnaci(number)) |
This file contains hidden or 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
| def listEnds(list_x): | |
| b = [0,0] | |
| b[0]= list_x[0] | |
| b[1] = list_x[len(list_x)-1] | |
| return b | |
| a = [5, 10, 15, 20, 25] | |
| array = [] | |
| array = listEnds(a) |
This file contains hidden or 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
| def checkprime(input): | |
| counter = 0 | |
| for i in range(1, input+1): | |
| result = input // i | |
| print(result, counter) | |
| if (result * i == input): | |
| counter += 1 | |
| if (counter > 2): | |
| return False | |
| return True |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() | |
| { | |
| int a, b, c, d; | |
| printf("Enter fraction 1(numerator denominator) \n"); | |
| scanf("%d %d", &a,&b); | |
| printf("Enter fraction 2(numerator denominator) \n"); | |
| scanf("%d %d", &c, &d); | |
| if (b == 0 || d == 0){ |
This file contains hidden or 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
| #include <stdio.h> | |
| main() | |
| { | |
| int i; | |
| int p; | |
| for(i = 1; i <=16; i++) | |
| { | |
| for (p=1; p<=i; p++) | |
| { | |
| printf("**"); |
NewerOlder