start new:
tmux
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: | 
| #this is useful for copying snapshotted sites at archive.org | |
| #copied from http://superuser.com/questions/532036/trouble-using-wget-or-httrack-to-mirror-archived-website | |
| #replace ${wayback_url} with the full URL i.e. http://web.archive.org/web/20020705161639/http://kict.iiu.edu.my/ | |
| #replace ${domain_name} with the domain name of the site you'r mirroring without the 'http', so kict.iiu.edu.my | |
| httrack\ | |
| ${wayback_url}\ | |
| '-*'\ | |
| '+*/${domain_name}/*'\ | |
| -N1005\ | |
| --advanced-progressinfo\ | 
I hereby claim:
To claim this, I am signing this object:
| # 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 {} | 
| # https://scriptingosx.com/2019/06/moving-to-zsh-part-3-shell-options/ | |
| # notes from https://thevaluable.dev/zsh-install-configure/ | |
| export PATH="/usr/local/sbin:$PATH" | |
| PROMPT='%F{cyan}%n%f%F{yellow}@[%m]%f in %F{green}%~%f -> ' | |
| #prompt on the right side | |
| RPROMPT='%*' | |
| # aliases | 
| 1. Generate new domain name for logstash server. | |
| For this tutorial | |
| domain name = logstash-prod.xyz.com | |
| ip = 1.2.3.4 | |
| * Enter to following directory | |
| ``` | |
| $ sudo mkdir /etc/pki | |
| $ cd /etc/pki |