Skip to content

Instantly share code, notes, and snippets.

View maurice-schuppe's full-sized avatar
🏆
Goal archivements

Maurice Schuppe maurice-schuppe

🏆
Goal archivements
  • Freelancer
  • Toulouse, France
View GitHub Profile
@maurice-schuppe
maurice-schuppe / Keylogger-main.m
Created May 4, 2019 07:04 — forked from PLG/Keylogger-main.m
Skrew Everything Keylogger using HID in Objective-C
//
// main.m
// UniversalStatusBarClient
//
#import <Cocoa/Cocoa.h>
#import <IOKit/hid/IOHIDLib.h>
NSArray* keyMap[256];
void fill_keyMap(NSArray * __strong map[]);
@maurice-schuppe
maurice-schuppe / usb_hid_keys.h
Created April 30, 2019 08:21 — forked from MightyPork/usb_hid_keys.h
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
#!/usr/bin/env python
# Locates nearby access points for input to The Google Maps Geolocation API
# MAC OS X only
# Based on: https://github.com/localtracker/Google-Wifi-Geolocation-GNU-Linux
from os import popen
from sys import exit
from urllib2 import urlopen
@maurice-schuppe
maurice-schuppe / mem-loader.asm
Created October 15, 2018 03:08 — forked from zznop/mem-loader.asm
Fun little loader shellcode that executes an ELF in-memory using an anonymous file descriptor (inspired by https://x-c3ll.github.io/posts/fileless-memfd_create/)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Copyright (C), zznop, [email protected]
;;;
;;; This software may be modified and distributed under the terms
;;; of the MIT license. See the LICENSE file for details.
;;;
;;; DESCRIPTION
;;;
;;; This PoC shellcode is meant to be compiled as a blob and prepended to a ELF
#EXTM3U
#EXTINF:-1,Nahoi 1
http://vnn.anluong.info/hls/hanoi1.m3u8
#EXTINF:-1,Hanoi 2
http://vnn.anluong.info/hls/hanoi2.m3u8
#EXTINF:-1,VTC 1
http://vnn.anluong.info/hls/vtc1.m3u8
#EXTINF:-1,VTC 2
http://vnn.anluong.info/hls/vtc2.m3u8
#EXTINF:-1,VTV 1
@maurice-schuppe
maurice-schuppe / Makefile
Created August 15, 2016 11:10 — forked from rweichler/Makefile
HOOK C++ FUNCTION
SDK=/var/root/code/iPhoneOS7.1.sdk
CCPP=clang++ -isysroot $(SDK)
CC=clang -isysroot $(SDK)
all: cat cat.dylib
clean:
rm -f cat cat.dylib
@maurice-schuppe
maurice-schuppe / smartgit.desktop
Created August 14, 2016 15:26 — forked from alefteris/smartgit.desktop
Smartgit desktop file for use with Ubuntu Unity launcher
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Name=Smartgit
Exec=env SMARTGIT_JAVA_HOME=/opt/apps/jre7/ /opt/apps/smartgit/bin/smartgit.sh
Icon=/opt/apps/smartgit/bin/smartgit-64.png
@maurice-schuppe
maurice-schuppe / memcpy.c
Created July 1, 2016 03:29 — forked from nicky-zs/memcpy.c
One way to solve the glibc compatibility problem. In my case, when building a program with libthrift.a on linux with glibc version 2.15, ld always links memcpy@GLIBC_2.14 which cannot be found on systems with glibc version < 2.14. So, use this file to define a symbol __wrap_memcpy and use -Wl,--wrap=memcpy to tell ld using this symbol when meeti…
#include <string.h>
void *__memcpy_glibc_2_2_5(void *, const void *, size_t);
asm(".symver __memcpy_glibc_2_2_5, memcpy@GLIBC_2.2.5");
void *__wrap_memcpy(void *dest, const void *src, size_t n)
{
return __memcpy_glibc_2_2_5(dest, src, n);
}
/*
usbdevs - list mounted USB devices & their volume paths on Mac OS X
References:
- http://stackoverflow.com/questions/2459414/osx-how-to-get-a-volume-name-or-bsd-name-from-a-iousbdeviceinterface-or-locati
- http://superuser.com/questions/103755/whats-up-with-stat-on-mac-os-x-darwin-or-filesystems-without-names
- http://stackoverflow.com/questions/1698124/how-to-tell-if-a-given-path-is-mounted-removable-media-in-mac-os-x
- http://developer.apple.com/mac/library/samplecode/VolumeToBSDNode/Introduction/Intro.html
@maurice-schuppe
maurice-schuppe / osx-for-hackers.sh
Created January 20, 2016 15:43 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'