Skip to content

Instantly share code, notes, and snippets.

View DeeNewcum's full-sized avatar

Dee Newcum DeeNewcum

View GitHub Profile
testing 1 2 3
The main goal is to find varations in the ratio:
(number of bytes sent) : (number of spaces the cursor moves)
Things like tabs (more than one spaces horizontally) or newlines (*vertical* movement) would *seem* like a good idea. Unfortunately, these are usually in the 0x00 - 0x7F range. What WOULD be useful is if any of these "atypical cursor movement characters" can be found outside the lower-128 range.
Put simply, we are looking for:
ATYPICAL MOTION IN ATYPICAL LOCATIONS
#!/usr/bin/perl
# a script for darkening a Gnome-Terminal pallete
#
# see gconf-editor > apps > gnome-terminal > profiles > (some profile) > palette
#
# you'll also want to paste either the first or last color into the "foreground color" field
use strict;
use warnings;
@DeeNewcum
DeeNewcum / gist:4773435
Last active June 28, 2020 19:16
Linux keylogger, in Perl
#!/bin/bash
/usr/bin/perl -nlx "$0" /dev/input/event2
#!perl
# keylogger decoder
#
# similar programs:
# http://manpages.ubuntu.com/manpages/maverick/man8/logkeys.8.html
# http://en.usenet.digipedia.org/thread/16321/547/
use Data::Dumper;
@DeeNewcum
DeeNewcum / putty_fixed_colors.reg
Last active December 15, 2015 21:39
A fix for Putty's terrible default colorscheme. By default, dark blue is completely unreadable, and dark red is nearly so. Save as a .reg file and double-click on it.
REGEDIT4
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000001
"Colour0"="187,187,187"
"Colour1"="255,255,255"
"Colour2"="0,0,0"
#!/usr/bin/perl
use strict;
use warnings;
use Regexp::Optimizer;
my @losers_minus_winners = qw[
blaine breckinridge bryan cass clay cox davis dewey dole dukakis ford fremont
goldwater gore greeley hancock hughes humphrey kerry king landon mccain
@DeeNewcum
DeeNewcum / colors.html
Last active August 29, 2015 13:57
making colors with words -- http://redd.it/21lfco
<style>
span {padding:0 0.2em}
</style>
Using the 1337-speak rules:
<ul>
<li><tt>a</tt> &rArr; <tt>a</tt> &nbsp; or &nbsp; <tt>4</tt>
<li><tt>b</tt> &rArr; <tt>b</tt> &nbsp; or &nbsp; <tt>8</tt> &nbsp; or &nbsp; <tt>13</tt>
<li><tt>e</tt> &rArr; <tt>e</tt> &nbsp; or &nbsp; <tt>3</tt>
<li><tt>g</tt> &rArr; <tt>6</tt> &nbsp; or &nbsp; <tt>9</tt>
<li><tt>i</tt> &rArr; <tt>1</tt>
@DeeNewcum
DeeNewcum / gist:11197592
Last active August 29, 2015 14:00
nested <marquee>
<marquee style="font-size:150pt" scrollamount=10 direction=right> <!-- right -->
<marquee behavior=alternate direction=up scrollamount=25 style="height:2em"> <!-- up and down -->
&#xc6c3;
</marquee>
</marquee>
@DeeNewcum
DeeNewcum / gist:6966c632240c2f97c728
Created June 18, 2014 23:49
Georgy_K_Zhukov -- godlike
$ git clone https://github.com/DeeNewcum/reddit.git
$ cd reddit
$ ./created http://www.reddit.com/r/AskHistorians/comments/28gr18/what_is_the_point_of_armored_trains/
This story was created on:
Wed Jun 18 15:08:51 2014
$ ./created http://www.reddit.com/r/AskHistorians/comments/28gr18/what_is_the_point_of_armored_trains/ciartbo
This comment was created on: