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
#if 0 | |
Apple A11 (H10) introduces 2 propietary instructions called mul53lo.2d and mul53hi.2d. All of which belongs to Mul53 extensions. | |
Defintions: | |
- mul53lo.2d Vd, Vm: Multiplies 2 53-bit doublewords in the Vn vector with 2 53-bit doublewords in Vm vector and store 53 lowest bits in the Vn vector. | |
- mul53hi.2d Vd, Vm: Multiplies 2 53-bit doublewords in the Vn vector with 2 53-bit doublewords in Vm vector and store the result shifted 53 bits in the Vn vector. | |
Encodings: | |
- mul53lo.2d Vd, Vm: 0x00200000 | (m << 5) | (d << 0) | |
- mul53hi.2d Vd, Vm: 0x00200400 | (m << 5) | (d << 0) |
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
//FIRESTORM: only FIRESTORM (A14/M1) | |
//LIGHTNING: only Lightning (A13) | |
#define FIRESTORM | |
int main() { | |
__asm__ __volatile__("isb sy\n" | |
".long 0x00200000\n" //mul53lo.2d v0, v0 | |
".long 0x002003ff\n" //mul53lo.2d v31, v31 | |
".long 0x00200400\n" //mul53hi.2d v0, v0 | |
".long 0x002007ff\n" //mul53hi.2d v31, v31 | |
".long 0x00200800\n" //wkdmc x0, x0 |
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
from z3 import * | |
import sys | |
sys.setrecursionlimit(133337) | |
unk = [72, 95, 54, 53, 53, 37, 20, 44, 29, 1, 3, 45, 12, 111, 53, 97, 126, 52, 10, 68, 36, 44, 74, 70, 25, 89, 91, 14, 120, 116, 41, 19, 44, 0] | |
length=33 | |
s = Solver() | |
vec = "" | |
for i in range(length): | |
vec += F"{i} " | |
m = BitVecs(vec,8) |
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
.section .text | |
.global _start | |
atoi: | |
push {fp, lr} | |
mov fp, sp | |
push {r6, r8, r9, r10} | |
add r2, r0, r1 | |
add r8, r0, #0 | |
mov r10, #0 |
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
from collections import Counter | |
import sys | |
import re | |
WORDLIST = input("Enter dictionary path:") | |
WORDS = Counter([a.strip() for a in open(WORDLIST).readlines()]) | |
def P(word, N=sum(WORDS.values())): | |
"Probability of `word`." |
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
#!/usr/bin/env python3 | |
import requests | |
import sys | |
import re | |
import xml.etree.ElementTree as ET | |
tp = r'<table border="1">.*<\/table>' | |
print('WHOIS (pronounced as the phrase "who is") is a query and response protocol that is widely used for querying databases that store the registered users or assignees of an Internet resource.') | |
print('A reverse WHOIS lookup takes a registered user or assignee \'s name to find the domains that he or she owns.') | |
q = input("Enter Query for Reverse WHOIS lookup:") |
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
#!/usr/bin/env python3 | |
import socket | |
import sys | |
import threading | |
HOST = sys.argv[1] | |
SERVER = socket.gethostbyname(HOST) | |
print(F"[*] Port Scanning on {SERVER}") | |
def scan(start,end): | |
for PORT in range(start,end): |
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
from z3 import * | |
s = Solver() | |
s.set(unsat_core=True) | |
def is_valid(x): | |
return Or( | |
(x==ord('0')), | |
(x==ord('1')), | |
(x==ord('2')), | |
(x==ord('3')), | |
(x==ord('4')), |
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
#include <bits/stdc++.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <signal.h> | |
using namespace std; | |
void handler(int signum){ | |
cout<<0; | |
cerr<<"Idleness limit Exceeded!"; | |
exit(0); |
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
from urllib.request import urlopen,urlretrieve | |
import urllib | |
import sys | |
import json | |
key="ACCESS_KEY" | |
width=1920 | |
height=1080 | |
url="https://api.unsplash.com/photos/random?orientation=landscape&w="+str(width)+"&h="+str(height)+"&client_id="+key | |
response="" | |
try: |