Skip to content

Instantly share code, notes, and snippets.

View RC1140's full-sized avatar
🎿
NOP Sledding

Jameel RC1140

🎿
NOP Sledding
View GitHub Profile
<#
. SYNOPSIS
Generates the password hash for a RDP password using Win32 Calls
. EXAMPLE
Dot Source the file first
PS > . .\encrypter.ps1
PS > $passWordHash = encryptPassword -password "test"
01000000D08C9DDF0115D1118C7A00C04FC297EB0100000080630FB7A06C204FAF5B37C7ECAA094
90000000008000000700073007700000003660000C0000000100000007551E07D8A0434083A36FF
F65ADED0BD0000000004800000A0000000100000004B20BB957F6B6D3CFA6D262B007B9EC110000
ConvertTo-Base64 -textToEncode '$PSEmailServer = "smtp.isdsl.net";$test = ls -recurse;Send-MailMessage -from "jameel@chasesoftware.co.za" -to "jameel@chasesoftware.co.za" -Subject "test" -Body [string]$test -BodyAsHtml'
Add-Type -Path "C:\Temp\ConsoleApplication1\SmartIrc4net-0.4.0-src\bin\debug\Meebey.SmartIrc4net.dll"
$client = New-Object Meebey.SmartIrc4net.IrcClient
$client.Connect("zardos.mo.us.atrum.org", 5222)
$client.Login("poshBot","PoshBot")
$client.RfcJoin("#test")
$client.ListenOnce()
while(1){
$msg = $client.ReadLine($false)
if($msg -ne "" -and $msg -match "poshbot"){
$client.SendMessage("Message","#test","poshBotFtw")
}
}
@RC1140
RC1140 / gist:774268
Created January 11, 2011 10:17
download 27c conference vids
$lines = -split (new-object system.net.webclient).downloadstring('http://events.ccc.de/congress/2010/wiki/Conference_Recordings')
$lines |%{ if($_.contains('http://') -and $_.contains('.mp4')){$_.substring(6)}}
$comics = @()
$noItemsFound = 'No products currently available in here.'
$itemCheck = ''
$count = 1
while($itemCheck -ne $noItemsFound){
$page = (new-object System.Net.Webclient).DownloadString("http://www.awx.co.za/e107_plugins/shop/show_cat.php?lettersort=A&catpath=64/Comics&page=$count")
if($page.indexof($noItemsFound) -gt -1){
$itemCheck = $noItemsFound
break;
@RC1140
RC1140 / captcha.md
Created June 15, 2012 09:27 — forked from Samuirai/captcha.md
G-WAN Captcha Decode

G-WAN is a new free web server. They seem to be very proud of it, or at least just want to make a lot of money. Well anyway, in almost every sentence they write, they claim that they are 20% cooler than anything else. It feels a bit arrogant. I have to admit, I don't know a lot about web servers, so I can't speak to how good they are.

However, then I saw their Captcha example. I also don't know much about machine learning algorithms, OCR, and stuff like that, but I do know how to read pixels. I also know how to compare values with python :P

demo

They say the following about their Captcha:

@RC1140
RC1140 / DynamicDNS.py
Last active October 8, 2015 07:29
DynamicDNS For Use With AmazonRoute53
#!/usr/bin/env python
import stun
import socket
import route53
domainName = ''#Make sure this is a FQDN i.e. it should have a '.' at the end.
access_id = ''
secret_key = ''
hostedZoneID = '' #Get this from your aws account
@RC1140
RC1140 / hola.diff
Created January 30, 2013 20:27
Hola patch to remove remote calls and lower permissions requirements.
diff --cc manifest.json
index 984792c,06d9aad..0000000
--- a/manifest.json
+++ b/manifest.json
@@@ -5,9 -5,7 +5,13 @@@
"proxy",
"webRequest",
"webRequestBlocking",
++<<<<<<< HEAD
+ "<all_urls>",
@RC1140
RC1140 / customTtyTterOutput.pl
Created February 21, 2013 20:23
Small little extension for ttytter that allows you to highlight the names of certain users. I also changed the way tweets are displayed to suit my liking. To use it run ttytter -exts=customTtyTterOutput.pl
use Term::ANSIColor;
#Open a text file with a list of users to highlight
open our $handle, '<', "/home/<your username>/tweetersToHighlight.txt";
chomp(our @customConsole.pl = <$handle>);
#Convert array to hash/dictionary
our %users = map { $_ => 1 } @customConsole.pl;
close $handle;
#Setup ttytter hook
$handle = sub {