Skip to content

Instantly share code, notes, and snippets.

adliwahid / .zshrc
Last active Feb 1, 2021
minimal zsh configuragion (.zshrc)
View .zshrc
# notes from
export PATH="/usr/local/sbin:$PATH"
PROMPT='%F{cyan}%n%f%F{yellow}@[%m]%f in %F{green}%~%f -> '
#prompt on the right side
# aliases
adliwahid / gist:7bd1d37195f6a081354b7143280044c7
Created Jan 14, 2021
Logstash configuration + Virustotal API with http filter + memcached
View gist:7bd1d37195f6a081354b7143280044c7
# There's a virustotal filter for logstash if you search the Internet
# I have a field hash that contains the sha256 of the file downloaded on the honeypot
# memcached is used to store the query results in memory
# query is made to memcached, if there's nothing there then make the http request with the API key
# memcached is used to minimize the # of queries made given the same file hash
# the returned results is stored in vt.* field . You may need to remove fields that you don't need
# you'll also need to install memcached and the logstash memcached filter
input {}

Keybase proof

I hereby claim:

  • I am adliwahid on github.
  • I am adliwahid ( on keybase.
  • I have a public key whose fingerprint is 0CA9 A0A3 42C0 241E 6AE9 B24C 53F7 CE5C 6352 3696

To claim this, I am signing this object:

adliwahid /
Created Apr 17, 2016
httrack for mirroring site on (waybackmachine)
#this is useful for copying snapshotted sites at
#copied from
#replace ${wayback_url} with the full URL i.e.
#replace ${domain_name} with the domain name of the site you'r mirroring without the 'http', so
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
import SimpleHTTPServer
import SocketServer
paths = set()
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
# Detect remote file inclusion
if '=http' in self.path: