Skip to content

Instantly share code, notes, and snippets.

View mtrovilho's full-sized avatar

Marcos Trovilho mtrovilho

View GitHub Profile
@mtrovilho
mtrovilho / FCPrivateBatteryStatus.m
Created April 5, 2016 19:23
How to get raw battery info (mAh remaining, etc.) from iOS using private APIs. For internal testing only, NOT APP STORE DISTRIBUTION!
#import <Foundation/Foundation.h>
#include <dlfcn.h>
NSDictionary *FCPrivateBatteryStatus()
{
static mach_port_t *s_kIOMasterPortDefault;
static kern_return_t (*s_IORegistryEntryCreateCFProperties)(mach_port_t entry, CFMutableDictionaryRef *properties, CFAllocatorRef allocator, UInt32 options);
static mach_port_t (*s_IOServiceGetMatchingService)(mach_port_t masterPort, CFDictionaryRef matching CF_RELEASES_ARGUMENT);
static CFMutableDictionaryRef (*s_IOServiceMatching)(const char *name);
@mtrovilho
mtrovilho / Aircrack Commands
Last active March 3, 2025 15:02 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
// Install the latest Xcode, with the Command Line Tools.
// Install Homebrew
// Install aircrack-ng:
brew install aircrack-ng
// Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport
// Figure out which channel you need to sniff:
sudo airport -s

Keybase proof

I hereby claim:

  • I am mtrovilho on github.
  • I am mtrovilho (https://keybase.io/mtrovilho) on keybase.
  • I have a public key whose fingerprint is ED05 8D9B 3A06 BAE9 7F10 8B96 E025 F6CB D479 563A

To claim this, I am signing this object: