Skip to content

Instantly share code, notes, and snippets.

@masbog
masbog / yowsup-utilities.py
Last active April 4, 2024 22:12
yowsup utilities for getting new whatsapp.apk and processing it to get whatsapp version and classdex md5
#!/usr/bin/python
# yowsup utilities for getting new whatsapp.apk and processing it to get whatsapp version and classdex md5
#
# Output :
# WhatsApp Version: 2.17.296
# WhatsApp ClassesDex: YrJNPljM3TuNFPIOZ+jziw==
#
# @MasBog
import os
@masbog
masbog / dexMD5.py
Last active October 11, 2023 14:14
get dex MD5 of WhatsApp Application and get WhatsApp Version from an APK file
#!/usr/bin/env python3
# tweak up from https://github.com/mgp25/classesMD5-64/blob/master/dexMD5.py
# build AXML library from https://github.com/mikusjelly/axmlparser
# add xml manifest parse for getting WhatsApp Version
# to use this $ python3 dexMD5.py apk/WhatsApp.apk
# Output :
# WhatsApp Version : 2.17.296
# WhatsApp ClassesDEX MD5 : b'YrJNPljM3TuNFPIOZ+jziw=='
#
# @MasBog
@masbog
masbog / fixXcode6OnElCapitan.sh
Last active August 30, 2023 06:47 — forked from DaveWoodCom/fixXcode6OnElCapitan.sh
Script to fix Xcode 6.x so that it will run on El Capitan
#!/bin/bash
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/
##
## Permission is hereby granted, free of charge, to any person obtaining a copy of this
## software and associated documentation files (the "Software"), to deal in the Software
## without restriction, including without limitation the rights to use, copy, modify,
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
## permit persons to whom the Software is furnished to do so, subject to the following
## conditions:
@masbog
masbog / sampleCache.m
Created April 24, 2012 15:12
Save image into temporary directory iOS
#define TMP NSTemporaryDirectory()
- (NSString*)setFileName:(NSString*)url
{
NSArray *tokenize = [url componentsSeparatedByString: @"/"];
NSString *imageFile = [tokenize objectAtIndex:([tokenize count]-1)];
//NSLog(@"%@",imageFile);
return imageFile;
}
@masbog
masbog / dc91d04bacb8d0a03d75acfe4130c9a290979ca6.dvtdownloadableindex
Created January 13, 2016 09:39
How to enable iOS 7.0/7.1 Simulator download Xcode Version 7.2 (7C68)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>downloadables</key>
<array>
<dict>
<key>dependencies</key>
<array/>
<key>fileSize</key>
# =====================================================================
## SHADY APPS FROM CHINA HOSTS
## BLOCK LIST v2.2.6 Work in Progress (May 2016)
## By Megaton
#
@masbog
masbog / boringssl.md
Created April 7, 2021 03:34 — forked from owen800q/boringssl.md
boringssl library's ssl pinning bypass

function bytes sequence signature

arm 32

2D E9 F0 4F A3 B0 81 46 50 20 10 70 D9 F8 98 70 00 2F

arm 64

FF 03 05 D1 FC 6B 0F A9 F9 63 10 A9 F7 5B 11 A9 F5 53 12 A9 F3 7B 13 A9 08 0A 80 52 48 00 00 39 16 54 40 F9 56 07 00 B4 C8 02 40 F9 08 07 00 B4 29 20 40 A9 F3 03 02 AA
@masbog
masbog / README.md
Created March 9, 2020 19:33 — forked from ur0/README.md
SockPuppet 3

SockPuppet 3

This is a kernel exploit targeting iOS 12.0-12.2 and 12.4. It exploits a dangling kernel pointer to craft a fake task port corresponding to the kernel task and gets a send right to it.

This code is not readily compilable — some common sense is a prerequisite. If you do get it going though, it is extremely reliable on any device with more than a gigabyte of RAM. Interested readers may want to investigate how reallocations can be prevented -- this might improve reliability even more.

License

@masbog
masbog / libgs_install.sh
Created June 17, 2014 07:50
Installing ghostscript 9 CentOS 6.5 with shared Library
curl -O http://downloads.ghostscript.com/public/ghostscript-9.14.tar.gz &&
tar -xzf ghostscript-9.14.tar.gz &&
cd ghostscript-9.14 &&
./configure &&
make install &&
make so &&
cp ghostscript-9.14/sobin/libgs.so.9.14 /usr/lib &&
ln -s /usr/lib/libgs.so.9.14 /usr/lib/libgs.so &&
mkdir -p /etc/ld.so.conf.d/ &&
echo "/usr/lib/libgs.so" > /etc/ld.so.conf.d/libgs.conf &&
@masbog
masbog / send_SMS.c
Last active February 16, 2019 17:55
Sending SMS iOS Terminal
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <time.h>
#define BUFSIZE (65536+100)