Ansible Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.CWD- name: Go to the folder and execute command command: chdir=/opt/tools/temp lsResource: https://stackoverflow.com/questions/19369931/ansible-how-to-change-active-directory-in-ansible-playbookAdd apt repoThis will create ```docker.list``` in ```/etc/…

Ruby Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.File OperationsChmod fileFile.chmod(0600, file)Resource: https://stackoverflow.com/questions/22707040/change-permissions-of-file-in-rubyMove file without fileutilsFile.rename source_path, target_pathResource: https://stackoverflow.com/questions/403239/how-do-i-move-a-file-with-ruby…

Kali Config

This encompasses the various things I do whenever I'm setting up a new Kali VM in Virtualbox. Proxy Configuration Configure proxy (if applicable) by inputting the required values into /etc/environment. It will probably look something like this: http_proxy=www.proxy.com:80 https_proxy=www.proxy.com:80…

PHP Notes

I'm not thrilled that I have to create this cheatsheet, but such is life. Embed HTML in php <?php echo "<p>Stuff</p>"; ?> Resource: https://stackoverflow.com/questions/18140270/how-to-write-html-code-inside-php Setup Debugger with PHP w/ PHPStorm and XAMPP Start out by installing…

Burp Notes

Automatically change value of request parameter Go to Proxy -> Options Click Add under Match and Replace Specify the value to match and the value to replace, such as: Match: uid=bob and Replace with: uid=evilbob This can be done with regex if you'd like, for example: Match:…