This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tab() { | |
s=$(printf "%s" "$*" | base64 | tr -d \\n) | |
osascript &>/dev/null <<EOF | |
tell application "iTerm" | |
activate | |
tell current window to set tb to create tab with default profile | |
tell current session of current window to write text " eval \$(echo $s | base64 --decode)" | |
end tell | |
EOF | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <winternl.h> | |
#include <stdarg.h> | |
#define GetCurrentProcess() ((HANDLE)-1) | |
NTSYSCALLAPI NTSTATUS NTAPI NtCreateSection( | |
_Out_ PHANDLE SectionHandle, | |
_In_ ACCESS_MASK DesiredAccess, | |
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import ctypes.wintypes as wintypes | |
import time | |
import win32con | |
user32 = ctypes.CDLL('user32') | |
user32.MapVirtualKeyW.restype = wintypes.UINT | |
user32.MapVirtualKeyW.argtypes = (wintypes.UINT, wintypes.UINT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Fun() { | |
$sb = New-Object System.Text.StringBuilder | |
for ($i = 1; $i -le 10; $i++) { | |
$sb.Append($i) | |
} | |
return $sb.ToString() | |
} | |
$ans = Fun | |
echo $ans.GetType() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
s="main>div>div>div>table tr" | |
curl -s https://flare-on9.ctfd.io/scoreboard | | |
htmlq "$s :nth-child(1) small, $s :nth-child(2), $s :nth-child(4) span" -t -w | | |
awk ' | |
BEGIN { | |
i = -1 | |
n = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* | |
* ROGUE | |
* | |
* GuidePoint Security LLC | |
* | |
* Threat and Attack Simulation | |
* | |
!*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd = C:\Users\User\Downloads\arduino-1.8.19\hardware\tools\avr/bin/avr-g++ -c -g | |
-Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections | |
-fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p | |
-DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\User\Downloads\arduino-1.8.19\hardware\arduino\avr\cores\arduino | |
-IC:\Users\User\Downloads\arduino-1.8.19\hardware\arduino\avr\variants\standard | |
sketch\test.ino.cpp -o | |
preproc\ctags_target_for_gcc_minus_e.cpp | |
cmd = C:\Users\User\Downloads\arduino-1.8.19\hardware\tools\avr/bin/avr-g++ -c -g | |
-Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&{ | |
$listener = New-Object Net.HttpListener; | |
$listener.Prefixes.Add("http://+:8009/"); | |
$listener.Start(); | |
while ($listener.IsListening) { | |
$ctx = $listener.GetContext(); | |
$HRes = $ctx.Response; | |
$path = (Join-Path $Pwd ($ctx.Request).RawUrl); | |
Write-Host ("Request URL: {0}" -f $ctx.Request.RawUrl) | |
if ([System.IO.Directory]::Exists($path)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import time | |
counter = 0 | |
stop = False | |
def worker(): | |
global counter | |
while not stop: | |
print(f'{counter=}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paramiko | |
client = paramiko.SSHClient() | |
client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
client.connect('localhost', username='inndy', password='12341234') | |
shell = client.invoke_shell(environment={'LC_ALL': 'en_US.UTF-8', 'LANG': '', 'LANGUAGE': ''}) | |
print('[*] first shell data') | |
print(shell.recv(4096)) | |
print('-'*80) |