Skip to content

Instantly share code, notes, and snippets.

View wesinator's full-sized avatar

Wes wesinator

View GitHub Profile
@wesinator
wesinator / number_of_bits.py
Last active May 12, 2018 17:02
Compute minimum number of bits required to represent a given integer
def number_of_bits(int):
try:
return len(bin(int)[2:])
except TypeError:
print("Error: not an integer")
@wesinator
wesinator / AUTOEXEC.BAT
Created April 29, 2018 02:09
IBM PC DOS config
@echo off
rem ********************************************************************************
rem * Setup base environment
rem ********************************************************************************
SET DIRCMD=/O
SET PROMPT=$p$g
SET PATH=\;\DOS;
CD \
Network indicators
Network based indications of possible compromise by the comment crew attackers.
HTTP POST traffic containing
name=GeorgeBush&userid=<4 digit number>&other=
HTTP GET traffic to pages with paths:
aspnet_client/report.asp
Resource/device_Tr.asp
@wesinator
wesinator / GORILLA.BAS
Last active January 3, 2019 15:44
Og MS QBASIC sample files
' Q B a s i c G o r i l l a s
'
' Copyright (C) Microsoft Corporation 1990
'
' Your mission is to hit your opponent with the exploding banana
' by varying the angle and power of your throw, taking into account
' wind speed, gravity, and the city skyline.
'
' Speed of this game is determined by the constant SPEEDCONST. If the
' program is too slow or too fast adjust the "CONST SPEEDCONST = 500" line
Mal/Barkio-A
Mal/Behav-001
Mal/Behav-112
Mal/Behav-116
Mal/Behav-204
Mal/Behav-363
Mal/Ecltys-A
Mal/Ecltys-C
Mal/Emogen-Y
Mal/Generic-L
001dd76872d80801692ff942308c64e6
002325a0a67fded0381b5648d7fe9b8e
00dbb9e1c09dbdafb360f3163ba5a3de
00f24328b282b28bc39960d55603e380
0115338e11f85d7a2226933712acaae8
0141955eb5b90ce25b506757ce151275
0149b7bd7218aab4e257d28469fddb0d
016da6ee744b16656a2ba3107c7a4a29
01e0dc079d4e33d8edd050c4900818da
024fd07dbdacc7da227bede3449c2b6a
mooo.com
chickenkiller.com
us.to
strangled.net
ignorelist.com
uk.to
crabdance.com
info.tm
jumpingcrab.com
twilightparadox.com
@wesinator
wesinator / Win98_Installation.md
Last active April 28, 2018 14:21
Windows 98 installation steps
  1. Run fdisk
  2. Run format C:
  3. Run SYS A: C: to copy MS-DOS system files to disk.
  4. Reboot from disk.
  5. Run the following to create the Windows install directory:
MD C:\WINDOWS
MD C:\WINDOWS\OPTIONS
MD C:\WINDOWS\OPTIONS\CABS
@wesinator
wesinator / snort_suricata.xml
Last active April 2, 2018 18:19
Syntax highlighting for Snort/Suricata style IDS rules on KDE. Save to ~/.local/share/org.kde.syntax-highlighting/syntax/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Snort/Suricata" section="Other" version="3" kateversion="5.0" extensions="*.rules;*.snort" license="MIT">
<highlighting>
<list name="action">
<item>activate </item>
<item>alert </item>
<item>drop </item>
<item>dynamic </item>
<item>log </item>