This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PREFIX=$HOME/qemu-arm | |
| export PATH=$PREFIX/bin:$PATH | |
| export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .syntax unified | |
| .thumb | |
| .data | |
| out: | |
| .space 10*4 | |
| semihost_arg: | |
| .space 4*4 | |
| .text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .syntax unified | |
| .thumb | |
| #include <sys/syscall.h> | |
| .section .text | |
| .global _start | |
| .thumb_func | |
| _start: | |
| /* write(1, "hello, world", 13) */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Failed to synchronize cache for repo 'rpmfusion-nonfree' from 'http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-22&arch=x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist, disabling. | |
| Last metadata expiration check performed 1:58:06 ago on Wed May 13 14:51:20 2015. | |
| Dependencies resolved. | |
| ============================================================================================================================================ | |
| Package Arch Version Repository Size | |
| ============================================================================================================================================ | |
| Installing: | |
| kernel x86_64 4.0.2-300.fc22 updates-testing 64 k | |
| kernel-core x86_64 4.0.2-300.fc22 updates-testing |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| volatile int n; | |
| int main() | |
| { | |
| n = 29; | |
| while (n != 1) | |
| if (n % 2 == 1) | |
| n = 3*n + 1; | |
| else | |
| n = n/2; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file s | |
| set disable-randomization on | |
| set disassemble-next-line on | |
| # break on call 'swap@plt' in main | |
| break *0x0804857c | |
| break 'swap@plt' | |
| run | |
| si | |
| disassemble 'swap@plt' | |
| printf "\n\ninfo symbol 0x804a014: " |