Skip to content

Instantly share code, notes, and snippets.

View Arax20's full-sized avatar

Putter Arax20

View GitHub Profile
@Arax20
Arax20 / wes-wrap.sh
Created March 5, 2023 12:01
A bash wrapper script for bitsadmin's wesng
#!/bin/bash
print_usage() {
echo "\
Usage: wes-wrap [OPTION]... -f [systeminfo]
Search for possible Windows exploits given systeminfo.exe output
Windows Exploit Suggester 0.98 ( https://github.com/bitsadmin/wesng/ )
required arguments:
-f File Specify the systeminfo file
optional arguments:
-i Impact Only display vulnerabilities with a given impact
@Arax20
Arax20 / ptRun.ahk
Last active May 26, 2024 07:40
Allows rebinding of winkey to a shortcut without getting in the way of system winkey shortcuts.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LWin::
Input, x, L1 ; Catches key after winkey
if (ErrorLevel = "NewInput") ; If catching was interrupted
{
Send #+r ; Set this to your powertoys run shortcut
@Arax20
Arax20 / urwidtest.py
Created January 11, 2019 14:02
[UrWid Testing] #urwid #cli
import urwid
#---Header---
header_text = urwid.Text(u' Periodic Table')
header = urwid.AttrMap(header_text, 'titlebar')
#---Periodic Table---
periodictable_text = urwid.Text(u'A periodic table should be here')
periodictable_filler = urwid.Filler(periodictable_text, valign='top', top=1, bottom=1)
v_padding = urwid.Padding(periodictable_filler, left=1, right=1)