Base Convert and Base Encode

Base Convert

Base conversion is a very basic skill in programming.
I was taught converting between decimal(base-10) and binary(base-2), decimal(base-10) and octal(base-8), decimal(base-10) and hexadecimal(base-16), and of course among base 2-powered numbers(pow(2,n)).

The conversion is quite simple, division is the only arithmetic operation we need.
If we want to convert a base-m number to a base-n number by our hands, the common way is:
1 Convert base-m number A to base-10 number B;
2 Convert base-10 number B to base-n number C.
just because the base-10 is the most familiar base to humans.

Continue reading “Base Convert and Base Encode” »

Base Convert and Base Encode by @sskaje: https://sskaje.me/2014/01/base-convert-base-encode/

Incoming search terms:

Note: LLDB Debug OS X Application

The LLDB Debugger, as it’s said on http://lldb.llvm.org/:

LLDB is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

I was trying to find an OllyDBG-like debugger on OS X, gdb & lldb are the two choices.
Affinic.com has GUI for these two debuggers, not so good.
Hopper Disassembler provides it’s own GDB Server app, still bad.

Only commands here:

Stop at entry:

Launch with args:

Read memory(stack like):

Continue reading “Note: LLDB Debug OS X Application” »

Note: LLDB Debug OS X Application by @sskaje: https://sskaje.me/2014/01/note-lldb-debug-os-application/

Incoming search terms:

Duplicated: For those who cannot use lsof on a jailbroken iDevice

From Apple signed fake device attributes?

If you find the lsof not working with a message like ‘lsof: PID 3206 information error: Cannot allocate memory’, then you may need http://pupil.io8.org/pub/iphone/misc/lsof/lsof-arm7-iOS4.2 from http://modmyi.com/forums/native-iphone-ipod-touch-app-discussion/721184-lsof-problem.html. Then chmod +x lsof-arm7-iOS4.2

Tested under iOS 6.1.3 on iPod Touch 4.

Duplicated: For those who cannot use lsof on a jailbroken iDevice by @sskaje: https://sskaje.me/2013/10/duplicated-for-those-who-cannot-use-lsof-on-a-jailbroken-idevice/

Incoming search terms:

Apple signed fake device attributes?

You are not authorised to read all content in this post.

Please login…

Apple signed fake device attributes? by @sskaje: https://sskaje.me/2013/10/apple-signed-fake-device-attributes/

How to get iDevice’s UDID from Mobile Safari?

This is an old topic, just make it as an intro to the coming article.

If you want to collect iOS users’ device detail, such as Serial Number, UDID, IMEI, you’ll find Apple provides an application called ‘iPhone Configuration Utility’.
You can download the iPhone Configuration Utility for Windows here and for OS X here.
Guys who ever tried to get an iOS Beta installed and worked might know this because of the mobileprovision stuff.
Run IPCU, choose ‘Configuration profiles’ and click the ‘New’ icon, you’ll see something like this:
ipcu snapshot

Write something and export as an unsigned mobileconfig file. Then open it with text editor, you’ll find a XML which means you can write your own without ipcu.
Take a look at this: https://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/iphoneotaconfiguration/ConfigurationProfileExamples/ConfigurationProfileExamples.html, you’ll find more.

Continue reading “How to get iDevice’s UDID from Mobile Safari?” »

How to get iDevice’s UDID from Mobile Safari? by @sskaje: https://sskaje.me/2013/10/how-to-get-idevices-udid-from-mobile-safari/

Incoming search terms: