Skip to content

Instantly share code, notes, and snippets.

View npyl's full-sized avatar
🙃
Working on exhausting projects as always

npyl

🙃
Working on exhausting projects as always
View GitHub Profile

radare2

load without any analysis (file header at offset 0x0): r2 -n /path/to/file

  • analyze all: aa
  • show sections: iS
  • list functions: afl
  • list imports: ii
  • list entrypoints: ie
  • seek to function: s sym.main
As of iOS 11/macOS High Sierra, and only including ones in Foundation and CoreFoundation
Strings:
_NSCFString - a CFStringRef or CFMutableStringRef. This is the most common type of string object currently.
- May have 8 bit (ASCII) or 16 bit (UTF-16) backing store
_NSCFConstantString - a compile time constant CFStringRef, like you'd get with @"foo"
- May also be generated by dynamic string creation if matches a string in a pre-baked table of common strings called the StringROM
NSBigMutableString - an NSString backed by a CFStorage (https://github.com/opensource-apple/CF/blob/master/CFStorage.h) for faster handling of very large strings
NSCheapMutableString - a very limited NSMutableString that allows for zero-copy initialization. Used in NSFileManager for temporarily wrapping stack buffers.
@npyl
npyl / libircclient.rb
Created January 5, 2019 20:50 — forked from clarete/libircclient.rb
Brew formula to install libircclient
require 'formula'
class Libircclient < Formula
homepage 'http://www.ulduzsoft.com/linux/libircclient/'
url 'http://downloads.sourceforge.net/project/libircclient/libircclient/1.6/libircclient-1.6.tar.gz'
sha1 '10fb7a2478f6d668dce2d7fb5cd5a35ea8f53ed4'
depends_on 'pkg-config' => :build
depends_on 'autoconf' => :build
depends_on 'automake' => :build

Keybase proof

I hereby claim:

  • I am npyl on github.
  • I am npyl (https://keybase.io/npyl) on keybase.
  • I have a public key ASDHRD0iqSPW5LiQFHjnPpeYlCYmsrjqGhZ0RuHp0tTmHAo

To claim this, I am signing this object:

@npyl
npyl / LICENSE.md
Created December 18, 2017 21:11 — forked from s4y/LICENSE.md
For Mac OS X: Get a list of running processes, and tell if a particular process is running, by name

Copyright (c) 2010 DeepTech, Inc.

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O

@npyl
npyl / Makefile
Created December 10, 2017 18:58 — forked from JonnyJD/Makefile
traversing the I/O registry on Mac OS X (iokit)
traverse_io_registry: traverse_io_registry.c
${CC} $^ -framework CoreFoundation -framework IOKit -o $@