Skip to content

Instantly share code, notes, and snippets.

## Exploitdb
https://www.exploit-db.com/
## OWASP
https://owasp.org/
https://owasp.org/www-project-juice-shop/
## BurpSuite
https://portswigger.net/burp
@singer
singer / pyconf2023 links
Created May 20, 2023 09:29
Ссылки Pyconf2023
@singer
singer / xserver_server.md
Created March 4, 2018 16:17
Remote TCP remote connection to X server

I'm not usgin gdm, xdm or anything like this. Just pure X

Server

xinit -- :1 vt1 -listen tcp

When launched

xhost +
@singer
singer / answer.md
Created February 8, 2018 09:30 — forked from jeremyBanks/answer.md
sqlite3 name escaping in Python (re: Stack Overflow question #6514274)

Putting up a bounty didn't produce a solution to this, so I've spent a while figuring out the best one I could. I don't have any source confirming that this is the correct way to do it, so use at your own risk.

Solution

To convert any string into a SQLite identifier:

  • Ensure the string can be encoded as UTF-8.
  • Ensure the string does not include any NUL characters.
  • Replace all " with "".
  • Wrap the entire thing in double quotes.

Goland Type lookup SHIFT+CTRL+P
Goland Documentation lookup CTRL+Q

@singer
singer / vbox.md
Last active November 13, 2017 15:35

Download and install virtualbox and virtualbox extentions

  1. Download here your_distrib_.deb_or_whatever
    https://www.virtualbox.org/wiki/Downloads
    dpkg_or_whatever -i ./your_distrib_.deb_or_whatever
  2. Download Oracle_VM_VirtualBox_Extension_Pack-.vbox-extpack https://www.virtualbox.org/wiki/Downloads
    sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-.vbox-extpack

Set envinroment variables

export VM_NAME="UbntSrv0"

#!/bin/sh
# i3-get-window-criteria - Get criteria for use with i3 config commands
# To use, run this script, then click on a window.
# Output is in the format: [<name>=<value> <name>=<value> ...]
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion,
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`,
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807
sudo mysql -u root
use mysql;
update user set plugin='' where User='root';
flush privileges;
exit;
xrandr --output VGA1 --right-of LVDS1
xrandr --output DP-1-1 --auto --left-of LVDS1
@singer
singer / .zshrc-new
Last active September 8, 2017 09:40
export WORKON_HOME=$HOME/envs
PROMPT="$USER@%m ${PROMPT} %/
$ "