def xmit( name, dump_ruby=True ):
	bin = os.path.normpath( os.path.join( "./bin/", "%s.bin" % name ) )
	f = open( bin, 'rb')
	data = f.read()
	print "# Name: %s\n# Length: %d bytes" % ( name, len( data ) )
	xmit_offset( data, "Port", pack( ">H", 4444 ) )           # 4444
	xmit_offset( data, "LEPort", pack( "<H", 4444 ) )         # 4444
	xmit_offset( data, "Host", pack( ">L", 0x7F000001 ) )     # 127.0.0.1
	xmit_offset( data, "IPv6Host", pack( "<Q", 0xBBBBBBBBBBBBBBB1 ) ) # An IPv6 Address
	xmit_offset( data, "IPv6ScopeId", pack( "<L", 0xAAAAAAA1 ) ) # An IPv6 Scope ID
	xmit_offset( data, "HostName", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\x00" )     # hostname filler
	xmit_offset( data, "RetryCounter", "\x6a\x05", 1 )     # socket retry
	xmit_offset( data, "CodeLen", pack( "<L", 0x12345678 ) )  # Filler
	xmit_offset( data, "Hostname", "https" )
	xmit_offset( data, "ExitFunk", pack( "<L", 0x0A2A1DE0 ) ) # kernel32.dll!ExitThread
	xmit_offset( data, "ExitFunk", pack( "<L", 0x56A2B5F0 ) ) # kernel32.dll!ExitProcess
	xmit_offset( data, "ExitFunk", pack( "<L", 0xEA320EFE ) ) # kernel32.dll!SetUnhandledExceptionFilter
	xmit_offset( data, "ExitFunk", pack( "<L", 0xE035F044 ) ) # kernel32.dll!Sleep
	xmit_offset( data, "EggTag1", pack( "<L", 0xDEADDEAD ) )  # Egg tag 1
	xmit_offset( data, "EggTag2", pack( "<L", 0xC0DEC0DE ) )  # Egg tag 2
	xmit_offset( data, "EggTagSize", pack( ">H", 0x1122 ) )   # Egg tag size
	xmit_offset( data, "RC4Key", "RC4KeyMetasploit")          # RC4 key
	xmit_offset( data, "XORKey", "XORK")                      # XOR key
	if( name.find( "egghunter" ) >= 0 ):
		null_count = data.count( "\x00" )
		if( null_count > 0 ):
			print ( null_count ) % "# Note: %d NULL bytes found."
	if dump_ruby:
		xmit_dump_ruby( data )

#=============================================================================#
dataset/ETHPy150Open secretsquirrel/the-backdoor-factory/asm/build.py/xmit/swapped operands of `%`