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
| #include <iostream> | |
| #include <openssl/err.h> | |
| #include <openssl/ssl.h> | |
| #include <string.h> | |
| using namespace std; | |
| void handleOpenSSLErrors(void) { | |
| ERR_print_errors_fp(stderr); | |
| abort(); | |
| } |
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| #!/bin/bash | |
| # First parameter is the sub-directory-absolute-path | |
| # Second parameter is the link of the repo | |
| # A smart split to get the repo-name, with / as a separator | |
| REPO_NAME="$(echo $2 | grep -oE '[^/]+$')" | |
| git init $REPO_NAME | |
| cd $REPO_NAME |
| # -------- | |
| # Hardware | |
| # -------- | |
| # Opcode - operational code | |
| # Assebly mnemonic - abbreviation for an operation | |
| # Instruction Code Format (IA-32) | |
| # - Optional instruction prefix | |
| # - Operational code |
| /* | |
| * CSE 351 HW1 (Data Lab ) | |
| * | |
| * Boris Kaul <me@boriskaul.com> | |
| * | |
| * bits.c - Source file with your solutions to the Lab. | |
| * This is the file you will hand in to your instructor. | |
| * | |
| * WARNING: Do not include the <stdio.h> header; it confuses the dlc | |
| * compiler. You can still use printf for debugging without including |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <threadpoolapiset.h> | |
| #define LEN 277 | |
| // run calc | |
| unsigned char op[] = | |
| "\xfc\x48\x83\xe4\xf0\xe8\xc0\x00\x00\x00\x41\x51\x41\x50\x52" | |
| "\x51\x56\x48\x31\xd2\x65\x48\x8b\x52\x60\x48\x8b\x52\x18\x48" |
| /* | |
| robin verton, dec 2015 | |
| implementation of the RC4 algo | |
| */ | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |