Skip to content

Instantly share code, notes, and snippets.

View surister's full-sized avatar
🥵

Ivan surister

🥵
View GitHub Profile
@surister
surister / vulnv.md
Last active January 4, 2024 11:16
Postgres vulnv??

docker run --rm --name somepostgres -e POSTGRES_PASSWORD=password postgres

docker exec -it somepostgres psql -U postgres

CREATE TABLE info_leak (leak TEXT)

COPY info_leak FROM '/etc/passwd'

SELECT * FROM info_leak

#!/usr/bin/env python
__author__ = 'surister'
__author_contact__ = 'github/surister'
import pathlib
import sys
if len(sys.argv) < 2:
raise Exception('Expected one argument with ".../project/node_modules/@vue/" path')