Skip to content

Instantly share code, notes, and snippets.

View seadog007's full-sized avatar
:octocat:

尤理衡 (Li-Heng Yu) seadog007

:octocat:
View GitHub Profile
@seadog007
seadog007 / phpipam.sh
Created January 4, 2021 05:44
Shell Defined Network - Syncing the IP lease setting from phpIPAM to RouterOS
#!/bin/bash
#
# Author: seadog007
# Date: 2021/01/03
# Description: Adding DHCP Lease & Static ARP & IP Whitelist from phpIPAM
# which makes phpIPAM actually managed IPs
#
ipam='192.168.1.5'
#!/bin/bash
# Kong Public Exposed & Unauthorized API Exploit
# Using the API to RCE (even the kong is highly possible in container)
#
# Author: Li-Heng Yu (Jasper Yu) <007seadog@gmail.com>
# Thu April 30, 2020
# MIT License
[ $# -ne 3 ] && echo 'Usage: '$0' <Kong API> <Kong Proxy Entry> <Command>' && echo 'Example: ./kong_exploit.sh "192.168.1.2:8001" "192.168.1.2:8000" "whoami"' && exit
@seadog007
seadog007 / readme.txt
Created April 19, 2020 12:06
A Plaid Puzzle (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@seadog007
seadog007 / googlelive_extract.py
Last active April 21, 2018 09:21
Google Live Photo extractor - Extracts static photo and video from the live photo taken by Google Camera.
#!/usr/bin/env python3
#
# Google Live Photo extractor
# Extracts static photo and video from the live photo taken by Google Camera
#
# Usage:
# $ googlelive_extract.py <image.jpg>
#
# Creates two new files - image_static.jpg and image_video.mp4
#
@seadog007
seadog007 / export.js
Created January 26, 2018 06:05
For http://moves-export.herokuapp.com/ when you have too many days. Run it in your console
function save() {
var textToWrite = out;
var textFileAsBlob = new Blob([textToWrite], {
type: 'text/json'
});
var fileNameToSaveAs = "moves-export.json";
var downloadLink = document.getElementById("download");
downloadLink.download = fileNameToSaveAs;
downloadLink.innerHTML = "";
@seadog007
seadog007 / run.js
Last active October 12, 2017 15:34
Plurk changing nick name event script
var re = /alt="\(dice20\)"\ rndnum="2"\ \/><[^>]alt="\(dice20\)"\ rndnum="20"\ \/><[^>]*alt="\(bzzz\)"\ rndnum="4"/;
var plurk_id = 1358061688;
var plurk_owner_id = 9194929;
var timer = setInterval(function(){
var rnd = (new Date().getTime());
var content = rnd + '\n(dice20)(dice20)(bzzz)'.repeat(10);
jQuery.post("/Responses/add", {qualifier: ':', content: content, p_uid: plurk_owner_id, plurk_id: plurk_id, lang: 'tr_ch', uid: SiteState.getSessionUser().id}, function(data){
m = re.exec(data.object.content);
if(m !== null){
console.log('Got it');
@seadog007
seadog007 / hitcon_zeroday_publish_channel_notification.sh
Last active July 21, 2017 06:16
HITCON ZeroDay publish notification to Telegram channel
#!/bin/bash
token='token_only'
disable_preview='True'
for i in `seq 1 10`
do
curl -s https://zeroday.hitcon.org/vulnerability/disclosed/page/$i | grep vu-l-data-titl | tr -d $'\t' | \
while read line
do
link=`echo $line | grep -oP '<a\ href="\K.*(?=")'`
title=`echo $line | grep -oP '<a.*">\K.*(?=</a)'`
@seadog007
seadog007 / fiddler.js
Last active January 31, 2019 06:53
Fiddler extension for cracking Taiwan McDonald Coupon app which is available for both Android and iOS version (´・ω・`)
/*
======================
Author: 海豹
Date: 2017/1/22
Version: 1.0.0.0
Description: Fiddler extension for cracking Taiwan MacDonald Coupon app which is available for both Android and iOS version (´・ω・`)
僅供學術使用 請勿用作非法用途
======================
*/
import System;
@seadog007
seadog007 / final_flag_myp_design.svg
Created October 28, 2016 01:40
The final flag design in MYP Design Class
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seadog007
seadog007 / rolling_mean.sh
Created September 24, 2016 16:54
Moving Avg. (Rolling Mean) Bash Demo.
#!/bin/bash
function gendata(){
for i in `seq 1 $1`
do
echo $(( ( RANDOM % $2 ) + 1 )) >> data_$$
done
}
echo '##Generate Datas##'