Skip to content

Instantly share code, notes, and snippets.

@gugod
Last active January 21, 2020 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gugod/1838312d3ab09d08f4ee8c6e46530b86 to your computer and use it in GitHub Desktop.
Save gugod/1838312d3ab09d08f4ee8c6e46530b86 to your computer and use it in GitHub Desktop.
Org

Non-trivial error

my @list = sort { $a <=> $b } { $foo // [] }

This can produce a @list with {“ARRAY(0xdeadbeef)”:undef} inside.

吳達委

https://open.spotify.com/episode/4myNcsIkVpo1OY8WMOVMze

台灣民眾黨

One things at a time.

Whatever

我不是鍵盤專家 (雙關語)

Security testinng

  • WebGoat: A lab env for security testing.
  • DVWA - “Damn Vulnerable Web App”
  • XSS - A way to install then run a script on somebody else’s system.

(Not necessarily cross multiple sites.)

  • impacting/attacking clients
  • SQL Injection
    • impacting/attacking DBs
  • Remove command execution.
    • impacting/attacking server
  • CSRF. Cross-side requset forgery
  • XML Attacks
    • XPATH Injection (Similar to SQL Injection). Modify the xpath query and get more information back then it was supposed to.
  • Session flaws (weak auth)
    • session ids are copied and re-used on different computers, causing session forks.
  • google hacking (GHDB) / Exploit database.
    • 把 stack tracke / dying message 丟去 google 搜尋,就會找出一堆沒有實作 error handler 的網站。
  • Firefox plugin TemperedData
    • modify request before it is sent
  • Cookie tempering
  • Webalizer – quickly reveal the web server version.
  • sslscan – basic checker, also check whether the target is vulnerbale to heartblead attack.
  • `openssl s_client` – initiate a secure socket and let user interact similar to `telnet`.

perlbrew-ing on debian

sudo apt install -y build-essential curl

\curl https://install.perlbrew.pl | bash eval “$(./perl5/perlbrew/bin/perlbrew init-in-bash)”

perlbrew install perl-5.26.1 –notest

perlbrew-ing on centos/7

sudo yum install -y gcc curl patch perl

perlbrew-ing on ubuntu/trusty64

sudo apt install -y build-essential curl

p5 critic: check typos in the keys of definitions of Moose attributes.

for example, capture the mispelt “defult” here:

has legs => ( is => "ro", isa => "Int", defult => 4 )

search: Hawaiian pidgin language

https://cu.ntv.co.jp/ 日テレ無料 by 日テレオンデマンド

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment