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
; Detect which party hungup an Asterisk call | |
; If we (the caller) hangup after Dial() we jump directly to h | |
; Because of the 'g' option if the other party hangs up we continue on | |
exten => s,1,Set(whoHungUp=CALLER) | |
exten => s,n,Dial(IAX2/provider/${number},,g) | |
exten => s,n,Set(whoHungUp=OTHERPARTY) | |
exten => s,n,Hangup | |
exten => h,1,NoOp(whoHungUp ${whoHungUp}) |
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
import os | |
import struct | |
""" | |
Crimsonland (Steam) pak file format | |
Header format: | |
50 40 4B 00 56 31 31 00 ("PAK" NUL "V11" NUL) |
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
import ctypes | |
import ctypes.wintypes | |
import win32con | |
class GlobalHotKeys(object): | |
""" | |
Register a key using the register() method, or using the @register decorator | |
Use listen() to start the message pump |
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
""" | |
Finds all Snom brand phones in a /24 and tells them to key in 6405 turn on the hands free speaker. | |
(6405 is an extension that plays the stock monkies sound from Asterisk) | |
""" | |
import urllib2 | |
import socket | |
import sys | |
def enumerate_snom_ips(base): |
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
<?php | |
function is_library($filename) | |
{ | |
static $libraryNames = array( | |
'/Zend/', | |
'/html2ps', | |
'/simpletest/', | |
'/phpMailer/', | |
'/dompdf', |
NewerOlder