Skip to content

Instantly share code, notes, and snippets.

View Sea-n's full-sized avatar
🇹🇼
AS212057

Sean Sea-n

🇹🇼
AS212057
View GitHub Profile
@dims
dims / README.md
Last active April 30, 2024 11:52
Kubernetes Resources
@m-radzikowski
m-radzikowski / script-template.sh
Last active April 25, 2024 18:43
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@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
#
@c910335
c910335 / answers.json
Last active March 10, 2018 13:46
SITCON 知識王
{
"資安趨勢部落格在文章中指出「伺服器變挖礦機將是未來日漸嚴重的問題」,並以 JenkinsMiner 為例,含有漏洞的伺服器一旦被 JenkinsMiner 入侵且成功部屬挖礦程式,將會造成 ___________ 影響,請問 _________ 為?":"效能嚴重變慢",
"趨勢科技在〈典範轉移〉一文中提出,BEC 詐騙已開始放棄使用鍵盤側錄程式,而改用 ____________ 進行。":"網路釣魚 PDF 附件",
"請問下列何者不為剖析器?":"LSR",
"chroot 是在 UNIX 系統的一個操作,針對正在運作的軟體行程和它的子行程,改變它外顯的根目錄。chroot 程式可歸類為何種資安相關的應用?":"Sandbox",
"下列何者是 Ubuntu 的套件管理程式?":"APT",
"可以用哪個程式查詢從本地到另一個 IP Address 所經過的 router?":"traceroute",
"140.128.77.10/25 這個網段有多少可用的 IP?":"126",
"在二元樹走訪的方法中,我們常聽到 LVR、LRV、VLR 三種方法,請問 V 代表?":"Visiting,對當前的 node 進行print、assign或其他操作",
"Linux 裡有許多與系統相關的操作需要有 root 的權限,哪個指令可以幫助我們切換成 root?":"su",
@mingtsay
mingtsay / pwgen.php
Last active February 3, 2019 04:53
Password Generator by Ming Tsay
<?php
define('PWGEN_SYMBOLS', 0x01);
define('PWGEN_NUMBERS', 0x02);
define('PWGEN_LOWERS', 0x04);
define('PWGEN_UPPERS', 0x08);
define('PWGEN_EX_SIMILAR', 0x10);
define('PWGEN_EX_AMBIGUOUS', 0x20);
define('PWGEN_SEPARATOR_ARRAY', 0);
define('PWGEN_SEPARATOR_LF', 1);
define('PWGEN_SEPARATOR_CR', 2);
@BuffaloWill
BuffaloWill / cloud_metadata.txt
Last active April 16, 2024 04:15
Cloud Metadata Dictionary useful for SSRF Testing
## IPv6 Tests
http://[::ffff:169.254.169.254]
http://[0:0:0:0:0:ffff:169.254.169.254]
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]