Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #--------------------------------------------------------------------- | |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # -*- SQLITE3 GUI DEMO APP -*- | |
| # -*- Python (2.7.11) -*- | |
| # -*- wxPython (2.8) -*- | |
| # -*- Author : DB <dbh4ck@gmail.com> aka <db~@NC> -*- | |
| # -*- GUI wxPython -*- | |
| # -*- coded by db~@NC -*- |
| // Main.cpp | |
| #include <wx/wx.h> | |
| #include "App.h" | |
| IMPLEMENT_APP(App) | |
| // App.h | |
| #include <wx/wx.h> | |
| #include "Frame.h" |
| from pynarcissus import jsparser | |
| from collections import defaultdict | |
| class Visitor(object): | |
| CHILD_ATTRS = ['thenPart', 'elsePart', 'expression', 'body', 'initializer'] | |
| def __init__(self, filepath): | |
| self.filepath = filepath | |
| #List of functions by line # and set of names |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| comment *========================================== | |
| jagHook by jAgx | |
| Note that: | |
| macros are like win32 api; they may modify all registers but ebx, edi, esi | |
| your .text section needs to be writable if using the non-procedural hooking | |
| if using radasm, add /SECTION:.text|RWE the LINK box under Project -> Project Options] | |
| otherwise, just add /SECTION:.text,RWE to linking arguments | |
PE Injection/Impersonation:
Shellcode injection:
| #include <windows.h> | |
| #include <iostream> | |
| #include "ntddk.h" | |
| bool enum_processes() | |
| { | |
| ULONG retLen = 0; | |
| // check length: |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Runtime; | |
| using System.Runtime.InteropServices; | |
| using System.Diagnostics; | |
| namespace EnumPTW | |
| { |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True,Position=0)] | |
| [String]$GUID | |
| ) | |
| function Resolve-KnownFolderGuid { | |
| Param( | |
| [Parameter(Mandatory=$True,Position=0)] | |
| [String]$GUID |