Skip to content

Instantly share code, notes, and snippets.

@antirez
Created September 8, 2016 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antirez/25095acfde328bcc139640893e33c11f to your computer and use it in GitHub Desktop.
Save antirez/25095acfde328bcc139640893e33c11f to your computer and use it in GitHub Desktop.
----- DUMPING CODE AROUND EIP ------
Symbol: debugCommand (base: 0x4624c0)
Module: ./redis-server *:6379 (base 0x400000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x4624c0 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
21015:M 08 Sep 23:12:22.833 # dump of function (hexdump of 592 bytes):
415741564155415455534889fb4881ec58100000448b673064488b042528000000488984244810000031c04183fc010f847b0300004c8b6f38be22834e00498b4508488b68084889efe852d5fbff85c00f84fa010000be46454f004889efe83dd5fbff85c00f8465010000be4f454f004889efe828d5fbff85c00f8488010000be57454f004889efe813d5fbff85c00f8473010000be1be74f004889efe8fed4fbff85c00f845e040000be69454f004889efe8e9d4fbff85c00f84f10c0000be77454f004889efe8d4d4fbff85c00f84ec030000be9a454f004889efe8bfd4fbff85c00f84d7020000be07874e004889efe8aad4fbff85c00f85420300004183fc030f842b060000be22464f004889efe88bd4fbff85c0750e418d4424fd83f8010f86c9060000be3c464f004889efe86cd4fbff85c0750a4183fc020f8424080000be43464f004889efe851d4fbff85c00f85d90300004183fc030f84c0080000be5b464f004889efe832d4fbff85c00f855a040000662e0f1f840000000000be7c464f004889efe813d4fbff85c0750a4183fc020f8412090000bee6464f004889efe8f8d3fbff85c00f85a00400004183fc030f84140800004889eabee83e4f004889df31c0e87459fdffeb0a6690c60425ffffffff78488b8424481000006448330425280000000f85010b00004881c4581000005b5d415c415d415e415fc30f1f80000000004531f64183fc0248c7442430000000000f8f520100004889efbe4f454f00e875d3fbff83f8014c89f619ff83e703e8d58dfcffbe803d4f004889dfe88856fdffeb8e660f1f440000
Function at 0x438000 is addReplyErrorFormat
Function at 0x42b4d0 is restartServer
Function at 0x437d90 is addReplyError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment