/********************************************************************
* This C program was generated by spl2c, the Shakespeare to C *
* converter by Jon Åslund and Karl Hasselström. *
********************************************************************/
/* libspl definitions and function prototypes */
#include "spl.h"
int main(void)
This file contains 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
# | |
# creditcard.py | |
# | |
# Author: | |
# John Lawrence M. Penafiel (penafieljlm) | |
# | |
# Python source code attachment for the article at: | |
# https://penafieljlm.wordpress.com/2016/10/29/ekoparty-ctf-2016-write-ups/#web-150 | |
# |
Concepts
- Common Instructions
- Value Representation
- Negative Numbers
- 2s Complement
- Endianess
- Data Structures
- Negative Numbers
- Stack Frame Format
This file contains 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
struct Template { | |
int64_t data_64; | |
int32_t data_32; | |
int16_t data_16; | |
char data_char; | |
} value { | |
// the x'es get instructions written onto them | |
// notice that those instructions are nops | |
//xxxxxx |
- Executables
- Linux Native
- Static Analysis
strings
: For listing down displayable textobjdump
: For parsing binariesfile
: For checking architecture of executablereadelf
: For parsing ELF Headerschecksec
: Checks active protection mechanisms for executables
- Static Analysis
- Linux Native
- https://github.com/kholia/checksec
- Each user gets symmetric key, private key, and public key
- Symmetric key = encrypts the data that only the user needs to see
- Private key = decrypts the data shared to the user
- Public key = encrypts the data shared to the user
- Symmetric key is encrypted by user PBKDF2 of user's password
- Private key is encrypted by user's symmetric key
- Generate recovery codes for user and encrypt copies of symmetric key using these recovery codes
- Encrypt user symmetric key using organization's public key for key backup mechanism
- Stroe organization's private key in a password manager or something
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
html { | |
height: 100%; | |
} | |
body { | |
height: 100%; |
This file contains 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
import re | |
import tld | |
# regex by @diegoperini | |
# taken from https://mathiasbynens.be/demo/url-regex | |
# modified by @penafieljlm | |
RE_DOMAIN = re.compile( | |
r'(?:' | |
r'\S+' | |
r'(?' |
This file contains 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
for %a in ("*.*") do "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "%a" --sout=#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst="%a.mp3"} --intf=dummy --verbose=2 --play-and-exit |
OlderNewer