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-rubyFix extensions not…

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:…

Apple Notes

Downloads for Apple Developers https://developer.apple.com/download/more/ Keyboard Shortcuts Put mac to sleep Option–Command–Power Put display to sleep Control–Shift–Power Resources: https://support.apple.com/en-us/HT201236 OSX Terminal Stuff SSH Check ssh service status sudo systemsetup -getremotelogin Enable SSH sudo systemsetup -setremotelogin on…