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
#!/usr/bin/python3 | |
import angr | |
import claripy | |
import sys | |
def solve(binary="",target=0x0,start=0x0,avoid=[]): | |
padding_length = 32 | |
project = angr.Project(binary) |
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
#!/usr/bin/python3 | |
import angr | |
import sys | |
import claripy | |
def solve(elf_binary="./binary.elf"): | |
project = angr.Project(elf_binary) | |
argv = claripy.BVS('argv',8*0x6) |
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
#!/usr/bin/python3 | |
import angr | |
import sys | |
import claripy | |
def solve(elf_binary="./binary.elf"): | |
project = angr.Project(elf_binary) #load up binary | |
arg = claripy.BVS('arg',8*0x20) #set a bit vector for argv[1] |
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
#!/usr/bin/python3 | |
import angr | |
import sys | |
import claripy | |
def solve(elf_binary="./binary.elf"): | |
project = angr.Project(elf_binary) | |
arg = claripy.BVS('arg',8*0x20) |
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 line in `grep --color=never * -Rnie file_operations`; do LINE=`echo $line | awk -F\: '{ print $2 }'`; FILE=`echo $line | awk -F\: '{ print $1 }'`; [ "$LINE" != "" ] && echo "[*] vim +"$LINE" $FILE"; done > vim_cmds.sh |
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
>make | |
yosys -p 'synth_ice40 -top top -blif example.blif' example.v | |
/----------------------------------------------------------------------------\ | |
| | | |
| yosys -- Yosys Open SYnthesis Suite | | |
| | | |
| Copyright (C) 2012 - 2018 Clifford Wolf <[email protected]> | | |
| | | |
| Permission to use, copy, modify, and/or distribute this software for any | |
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
`default_nettype none | |
module top( | |
input clk, //clock input | |
output reg LED1, //LED outputs | |
output reg LED2, | |
output reg LED3, | |
output reg LED4, | |
output reg LED5 | |
); |
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
set_io --warn-no-port RX 9 | |
set_io --warn-no-port TX 8 | |
set_io LED1 99 | |
set_io LED2 98 | |
set_io LED3 97 | |
set_io LED4 96 | |
set_io LED5 95 | |
set_io clk 21 |
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
cat /etc/lsb-release | |
sudo apt-get install build-essential clang bison flex libreadline-dev\ | |
gawk tcl-dev libffi-dev git mercurial graphviz\ | |
xdot pkg-config python python3 libftdi-dev\ | |
qt5-default python3-dev libboost-all-dev cmake | |
git clone https://github.com/cliffordwolf/icestorm.git icestorm | |
cd icestorm | |
make -j$(nproc) |
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
VER=example | |
DEV=1k | |
all: $(VER).txt | |
icepack $(VER).txt $(VER).bin | |
$(VER).txt: $(VER).blif | |
arachne-pnr -d $(DEV) -p $(VER).pcf $(VER).blif -o $(VER).txt | |
$(VER).blif: $(VER).v | |
yosys -p 'synth_ice40 -top top -blif $(VER).blif' $(VER).v |
NewerOlder