Logo Ricky
  • Home
  • About
  • More
    Skills Experiences Education Projects
  • Posts
  • Notes
  • Activities
  • Running
  • English
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • AI
  • Ansible
  • APP
  • BASH
  • Browser
  • Byte
  • Chart
  • Checklist
  • Chrome OS
  • CI
  • Cloudflare
  • Command Line
  • Config
  • Container
  • CURL
  • Data
  • Debug
  • Docker
  • Emoji
  • EMQX
  • GIN
  • Git
  • Github
  • Gitlab
  • Go
  • Golang
  • Google
  • GraphQL
  • HTTP
  • Infra
  • Infrastructure
  • Introduction
  • ITerm2
  • Kubernetes
  • Leetcode
  • Lightweight
  • Linux
  • Llm
  • Lua
  • Machinelearning
  • MacOS
  • Markdown
  • MQTT
  • Network
  • Nginx
  • Ollama
  • Prometheus
  • Protobuf
  • Proxy
  • Push
  • Python
  • QRCode
  • Redis
  • Regex
  • Security
  • SFTP
  • SHELL
  • Slides
  • Snow
  • Software
  • Ssh
  • String
  • Switch
  • Synology
  • Terminal
  • Timeout
  • Travel
  • Tunnel
  • URL
  • Video
  • Visualization
  • VScode
  • Web
  • Youtube
  • Zero Trust
  • 台語
Hero Image
TIL: timeout in Bash scripts

TIL: timeout in Bash scripts timeout 1m ./until.sh wrap timeout 1m bash -c "until curl --silent --fail-with-body 10.0.0.1:8080/health; do sleep 1 done"

Thursday, June 12, 2025 Read
Hero Image
I use Zip Bombs to Protect my Server

I use Zip Bombs to Protect my Server What happens is, they receive the file, read the header that instructs them that it is a compressed file. So they try to decompress the 1MB file to find whatever content they are looking for. But the file expands, and expands, and expands, until they run out of memory and their server crashes. The 1MB file decompresses into a 1GB. This is more than enough to break most bots. However, for those pesky scripts that won’t stop, I serve them the 10MB file. This one decompresses into 10GB and instantly kills the script.

Saturday, May 3, 2025 Read
Hero Image
人人都需要一個 HTTP proxy 來 debug

人人都需要一個 HTTP proxy 來 debug Charles Burp Suite mitmproxy

Friday, April 25, 2025 Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
  • Projects
Contact me:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky
  • Ricky