Skip to content

Instantly share code, notes, and snippets.

View isaidnocookies's full-sized avatar
👾
Beep Boop

isaidnocookies isaidnocookies

👾
Beep Boop
View GitHub Profile
#!/usr/bin/python
import argparse
import math
def CantorPairing(x,y):
"""
Turns the x,y pair into a Cantor Pairing value
Args:
#!/usr/bin/python3
# Uses the Python Imaging Library
# `pip install Pillow` works too
from PIL import Image
import glob
import os
import sys
def stripExifData(filename):
{
"nodes": [
{
"id": "https://github.com/dotnet/cli",
"group": 1
},
{
"id": "https://github.com/XX-net/XX-Net",
"group": 1
},
<?php echo shell_exec("id") ?>
#!/usr/local/bin/python3
import os, sys
from pathlib import Path
def parseDirectories(rootdir):
for subdir, dirs, files in os.walk(rootdir):
for file in files:
if ('.DS_Store' in file):
continue
import os
from paramiko import SSHClient, AutoAddPolicy, RSAKey
from paramiko.auth_handler import AuthenticationException, SSHException
from pathlib import Path
class SSHer():
def __init__(self, remote_host, user, key_path):
self.remote_host = remote_host
self.ssh_key_path = key_path
#!/bin/bash
# Usage: ./reachable_test.sh <ip> <port>
# EX:
# cat ips.txt | while read ip; do ./checkScript.sh $ip <interesting_port> | tee -a scan.txt; done
if timeout 0.8 nc -z $1 $2 2>/dev/null; then
echo "$1 reachable"
else
echo "$1 not reachable"
set outputText to ""
set outputApplication to ""
set listOfProcesses to {}
# Get the text to type via the action script
set outputText to the text returned of (display dialog "Text to Type:" default answer "")
# Quit if nothing was input
if outputText is "" then
error number -128
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
User=kali
PIDFile=/home/kali/.vnc/%H:%i.pid
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver -localhost no -alwaysshared :%i
&{Get-VM | ?{$_.PowerState -eq "PoweredOn"} | %{
$strVMName = $_.Name; Get-NetworkAdapter -VM $_ |
select @{n="VMName"; e={$strVMName}},Name,NetworkName,ConnectionState} |
?{$_.ConnectionState.Connected -eq $false}} |
Export-Csv ./nic_report.csv -NoTypeInformation -UseCulture