Skip to content

Instantly share code, notes, and snippets.

View c1b3rh4ck's full-sized avatar

c1b3rh4ck c1b3rh4ck

  • PereiraSecTeam
  • South-America
View GitHub Profile
@c1b3rh4ck
c1b3rh4ck / core.py
Created September 22, 2014 04:20
Core for ctfinfobot.
#!/usr/bin/python
#ctf infobot BarcampSE Pereira 2013
#colors and core :)
import os, sys
import string
import random
fwpath = os.getcwd()
sys.path.append(fwpath+"src")
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@luisuribe
luisuribe / oracle shortcuts
Created December 8, 2009 07:13
Oracle shortcuts
-- Show all tables
> SELECT TABLE_NAME FROM TABS
-- List fields from a table
> SELECT *
FROM user_tab_cols
WHERE table_name = 'table_name'
-- List some fields fields from a table
> SELECT column_name, data_type, FROM user_tab_cols WHERE table_name = 'table_name'