This file contains hidden or 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
Return-Path: <[email protected]> | |
X-Original-To: [email protected] | |
Delivered-To: [email protected] | |
Received: by ohnopublishing.net (Postfix, from userid 1017) | |
id 8AD22B7AAC; Mon, 5 Oct 2015 22:06:40 +0000 (UTC) | |
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ohnopublishing.net; | |
s=ohnopublishing; t=1444082800; | |
bh=T8tiW+eBSVtcylt4kR1D1AdHP48z83nE08oeuBjj3ak=; | |
h=Date:From:To:Subject:References:In-Reply-To; | |
b=h6qbIEv5isIqnMGraVXDTFviA8dMqWvjKUYHoNoWFDK6rrh2rsDphsasyQiF40S0+ |
This file contains hidden or 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
ohnobinki@gibby ~/MusclePharm $ busybox telnet sam.ohnopub.net 10005 | |
HTTP/1.0 200 Ok | |
Content-Type: text/plain | |
Readme: Hello there | |
Hello! Welcome to this server! | |
Type 'quit' to terminate it. Type an empty line to drop this connection. | |
Type something other to display it on exit. | |
other |
This file contains hidden or 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
@getattr(''' 2>NUL | |
@ECHO OFF | |
: # Ignore any ERRORLEVEL infection attempt | |
SET ERRORLEVEL= | |
hg --config extensions.runcmd=%0\..\hgpy.cmd -- %* | |
EXIT /B %ERRORLEVEL% | |
''', 'format') | |
def n(): | |
pass |
This file contains hidden or 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
>>> f = open('c:\\users\\ohnob\\appdata\\local\\temp\\f.txt', 'w') | |
>>> with f as fi: | |
... fi.write('hi') | |
... | |
2 | |
>>> f.write('there') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ValueError: I/O operation on closed file. |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import abc | |
# Define an abstract class for our public interface. | |
class Human(object): | |
__metaclass__ = abc.ABCMeta | |
@abc.abstractmethod | |
def eat(self): |
This file contains hidden or 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
DECLARE @done BIT = 0; | |
IF 1=0 | |
BEGIN | |
faker: | |
PRINT 'x'; | |
SET @done = 1; | |
END | |
DECLARE @not BIT = @done; | |
PRINT @not; | |
IF @done = 0 |
This file contains hidden or 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
*.exe | |
*.o | |
blah-c11 |
This file contains hidden or 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
#!/usr/bin/env python | |
import csv, io | |
with io.StringIO() as os: | |
writer = csv.writer(os) | |
writer.writerow(['hi', 'bye']) | |
writer.writerow(['there', 'here']) | |
# You would figure out how to pass this to your email system | |
print(os.getvalue()) |