This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using System.Runtime.InteropServices; | |
namespace YourNamespace | |
{ | |
public class TcpConnectionInfo | |
{ | |
public IPAddress LocalIPAddress { get; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
000000 Officially Xerox | |
000001 SuperLAN-2U | |
000002 BBN (was internal usage only, no longer used) | |
000003 XEROX CORPORATION | |
000004 XEROX CORPORATION | |
000005 XEROX CORPORATION | |
000006 XEROX CORPORATION | |
000007 XEROX CORPORATION | |
000008 XEROX CORPORATION | |
000009 powerpipes? |
This file contains 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 <memory> | |
#include <string> | |
//returns the serial number of the first physical drive in a std::string or an empty std::string in case of failure | |
//based on http://codexpert.ro/blog/2013/10/26/get-physical-drive-serial-number-part-1/ | |
std::string getFirstHddSerialNumber() { | |
//get a handle to the first physical drive | |
HANDLE h = CreateFileW(L"\\\\.\\PhysicalDrive0", 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); | |
if (h == INVALID_HANDLE_VALUE) return {}; |
This file contains 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 <stdio.h> | |
int main() | |
{ | |
// The drive letter of the hard drive you want to get the serial number for | |
wchar_t drive[] = L"C:\\"; | |
// Buffer to receive the volume serial number | |
DWORD serial_number; |
This file contains 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 <Windows.h> | |
#include <winternl.h> | |
#define OUT | |
// define MessageBoxA prototype | |
using PrototypeMessageBox = int (WINAPI*)(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType); | |
// remember memory address of the original MessageBoxA routine | |
PrototypeMessageBox originalMsgBox = MessageBoxA; |
This file contains 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 ifaddr | |
import ipaddress | |
import logging | |
import threading | |
import time | |
import platform | |
import subprocess | |
# 1x Wireguard service running on 100.100.100.100 | |
# One DSL-Line and one LTE/4G-Line and want automatically swap between both while keeping current connections ACTIVE |
This file contains 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
# run with "python2 piwik.py http://1.2.3.4/" | |
import base64 | |
import requests | |
import sys | |
class php_ize: | |
def translate(self, variable): | |
msg = "" | |
if type(variable).__name__ == 'int': |
This file contains 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
find / -type f -a \( -perm -u+s -o -perm -g+s \) -exec ls -l {} \; 2> /dev/null | |
ls -alh /etc/cron.* | |
sudo -l | |
ps -aux | |
netstat -tulpn | |
ss -ls | |
find / -type f -writable 2>&1 | grep -v 'Permission denied' | |
dpkg -l | grep X | |
python3 -m http.server | |
find / -user root -perm -4000 -exec ls -ldb {} |
This file contains 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 200 fritz >> /etc/iproute2/rt_tables | |
ip route add default via 192.168.10.1 table fritz | |
ip rule add from 192.168.10.133 table fritz | |
ip rule add from 192.168.1.210 table fritz |
NewerOlder