Skip to content

Instantly share code, notes, and snippets.

Avatar
🎿
NOP Sledding

Jameel Haffejee RC1140

🎿
NOP Sledding
View GitHub Profile
@RC1140
RC1140 / gist:3299197
Created Aug 8, 2012
Arduino LCD Scrolling
View gist:3299197
#include <LiquidCrystal.h>
#include <string.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
char message[] = "This is some long message that will end up scrolling";
int previous = 0;
int pos = 0;
@RC1140
RC1140 / captcha.md
Created Jun 15, 2012 — forked from Samuirai/captcha.md
G-WAN Captcha Decode
View captcha.md

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:

View arborDemoStep1.html
<html>
<head>
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="http://localhost/arbor/lib/arbor.js" ></script>
<script language="javascript" type="text/javascript" src="http://localhost/arbor/demos/_/graphics.js" ></script>
<script language="javascript" type="text/javascript" src="http://localhost/arbor/demos/halfviz/src/renderer.js" ></script>
</head>
<body>
<canvas id="viewport" width="800" height="600"></canvas>
<script language="javascript" type="text/javascript">
View awxDumper.ps1
$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 / gist:774268
Created Jan 11, 2011
download 27c conference vids
View gist:774268
$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)}}
View gist:638423
while(1){
$msg = $client.ReadLine($false)
if($msg -ne "" -and $msg -match "poshbot"){
$client.SendMessage("Message","#test","poshBotFtw")
}
}
View gist:638399
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()
View dumpFileServerStructToMail.ps1
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'
View hash-password.ps1
<#
. 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
View pcScanner.ps1
([adsisearcher]"objectcategory=computer").findall() | %{([adsi]$_.path).cn + $_.properties.operatingsystemversion}
You can’t perform that action at this time.