Skip to content

Instantly share code, notes, and snippets.

View Inndy's full-sized avatar

Inndy Inndy

View GitHub Profile
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)
@Inndy
Inndy / crap.ps1
Created May 16, 2023 08:08
PowerShell is crap
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()
#!/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
/*!
*
* ROGUE
*
* GuidePoint Security LLC
*
* Threat and Attack Simulation
*
!*/
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
&{
$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)) {
import threading
import time
counter = 0
stop = False
def worker():
global counter
while not stop:
print(f'{counter=}')
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)
#272822,#49483E,#FD971F,#FFFFFF,#49483E,#FFFFFF,#A6E22E,#EB4D5C,#49483E,#FFFFFF
# -*- coding: utf-8 -*-
"""DropboxToGDrive.ipynb
Automatically generated by Colaboratory.
"""
from google.colab import drive
drive.mount('/content/drive')