metasploit-payloads 2.0.113 → 2.0.114
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/data/android/meterpreter.jar +0 -0
- data/data/android/metstage.jar +0 -0
- data/data/android/shell.jar +0 -0
- data/data/meterpreter/elevator.x64.debug.dll +0 -0
- data/data/meterpreter/elevator.x64.dll +0 -0
- data/data/meterpreter/elevator.x86.debug.dll +0 -0
- data/data/meterpreter/elevator.x86.dll +0 -0
- data/data/meterpreter/ext_server_bofloader.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_bofloader.x64.dll +0 -0
- data/data/meterpreter/ext_server_bofloader.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_bofloader.x86.dll +0 -0
- data/data/meterpreter/ext_server_espia.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_espia.x64.dll +0 -0
- data/data/meterpreter/ext_server_espia.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_espia.x86.dll +0 -0
- data/data/meterpreter/ext_server_extapi.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_extapi.x64.dll +0 -0
- data/data/meterpreter/ext_server_extapi.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_extapi.x86.dll +0 -0
- data/data/meterpreter/ext_server_incognito.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_incognito.x64.dll +0 -0
- data/data/meterpreter/ext_server_incognito.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_incognito.x86.dll +0 -0
- data/data/meterpreter/ext_server_kiwi.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_kiwi.x64.dll +0 -0
- data/data/meterpreter/ext_server_kiwi.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_kiwi.x86.dll +0 -0
- data/data/meterpreter/ext_server_lanattacks.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_lanattacks.x64.dll +0 -0
- data/data/meterpreter/ext_server_lanattacks.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_lanattacks.x86.dll +0 -0
- data/data/meterpreter/ext_server_peinjector.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_peinjector.x64.dll +0 -0
- data/data/meterpreter/ext_server_peinjector.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_peinjector.x86.dll +0 -0
- data/data/meterpreter/ext_server_powershell.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_powershell.x64.dll +0 -0
- data/data/meterpreter/ext_server_powershell.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_powershell.x86.dll +0 -0
- data/data/meterpreter/ext_server_priv.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_priv.x64.dll +0 -0
- data/data/meterpreter/ext_server_priv.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_priv.x86.dll +0 -0
- data/data/meterpreter/ext_server_python.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_python.x64.dll +0 -0
- data/data/meterpreter/ext_server_python.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_python.x86.dll +0 -0
- data/data/meterpreter/ext_server_sniffer.x64.dll +0 -0
- data/data/meterpreter/ext_server_sniffer.x86.dll +0 -0
- data/data/meterpreter/ext_server_stdapi.py +53 -32
- data/data/meterpreter/ext_server_stdapi.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_stdapi.x64.dll +0 -0
- data/data/meterpreter/ext_server_stdapi.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_stdapi.x86.dll +0 -0
- data/data/meterpreter/ext_server_unhook.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_unhook.x64.dll +0 -0
- data/data/meterpreter/ext_server_unhook.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_unhook.x86.dll +0 -0
- data/data/meterpreter/ext_server_winpmem.x64.debug.dll +0 -0
- data/data/meterpreter/ext_server_winpmem.x64.dll +0 -0
- data/data/meterpreter/ext_server_winpmem.x86.debug.dll +0 -0
- data/data/meterpreter/ext_server_winpmem.x86.dll +0 -0
- data/data/meterpreter/metsrv.x64.debug.dll +0 -0
- data/data/meterpreter/metsrv.x64.dll +0 -0
- data/data/meterpreter/metsrv.x86.debug.dll +0 -0
- data/data/meterpreter/metsrv.x86.dll +0 -0
- data/data/meterpreter/screenshot.x64.debug.dll +0 -0
- data/data/meterpreter/screenshot.x64.dll +0 -0
- data/data/meterpreter/screenshot.x86.debug.dll +0 -0
- data/data/meterpreter/screenshot.x86.dll +0 -0
- data/lib/metasploit-payloads/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d456431a9a0a90f715b26555be5229cadc713769d07679c8da9f5370b6b78d6e
|
4
|
+
data.tar.gz: e91f7f5e8d2bf763dd7f04eee2933a2b2484376c131110adee2bf3a0a90f35cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b6290da6753e8e1b84b4c5dbfb2182e62d4cb7067952e862c64118cc83b73134555f8d5b068106e348aec1931d244d4c3b640c82ada75e749a90cdfd3fbbb1
|
7
|
+
data.tar.gz: 9879bc24adddc5a902ad5dc27be22fb392f76414becaf8e99b526151c02bc0881d72486a0f0045baebb3f86f63d27ced8391c26d9d4d7e5144ffca7573f38d6d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
Binary file
|
data/data/android/metstage.jar
CHANGED
Binary file
|
data/data/android/shell.jar
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -12,6 +12,7 @@ import struct
|
|
12
12
|
import subprocess
|
13
13
|
import sys
|
14
14
|
import time
|
15
|
+
import binascii
|
15
16
|
|
16
17
|
try:
|
17
18
|
import ctypes
|
@@ -1850,47 +1851,67 @@ def stdapi_fs_mount_show(request, response):
|
|
1850
1851
|
response += tlv_pack(TLV_TYPE_MOUNT_GROUP, mount)
|
1851
1852
|
return ERROR_SUCCESS, response
|
1852
1853
|
|
1853
|
-
@register_function_if(has_windll)
|
1854
|
+
@register_function_if(sys.platform.startswith('linux') or has_windll)
|
1854
1855
|
def stdapi_net_config_get_arp_table(request, response):
|
1855
|
-
|
1856
|
-
|
1856
|
+
if has_windll:
|
1857
|
+
MIB_IPNET_TYPE_DYNAMIC = 3
|
1858
|
+
MIB_IPNET_TYPE_STATIC = 4
|
1857
1859
|
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1860
|
+
GetIpNetTable = ctypes.windll.iphlpapi.GetIpNetTable
|
1861
|
+
GetIpNetTable.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_ulong), ctypes.c_long]
|
1862
|
+
GetIpNetTable.restype = ctypes.c_ulong
|
1861
1863
|
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1864
|
+
ipnet_table = None
|
1865
|
+
size = ctypes.c_ulong(0)
|
1866
|
+
result = GetIpNetTable(ipnet_table, size, False)
|
1865
1867
|
|
1866
|
-
|
1867
|
-
|
1868
|
+
if result == ERROR_INSUFFICIENT_BUFFER:
|
1869
|
+
ipnet_table = ctypes.cast(ctypes.create_string_buffer(bytes(), size.value), ctypes.c_void_p)
|
1868
1870
|
|
1869
|
-
|
1870
|
-
|
1871
|
+
elif result != ERROR_SUCCESS and result != ERROR_NO_DATA:
|
1872
|
+
return error_result_windows(result), response
|
1871
1873
|
|
1872
|
-
|
1873
|
-
|
1874
|
+
if not ipnet_table:
|
1875
|
+
return error_result_windows(), response
|
1874
1876
|
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1877
|
+
result = GetIpNetTable(ipnet_table, size, False)
|
1878
|
+
if result != ERROR_SUCCESS:
|
1879
|
+
return error_result_windows(result), response
|
1878
1880
|
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1881
|
+
class MIB_IPNETTABLE(ctypes.Structure):
|
1882
|
+
_fields_ = [
|
1883
|
+
('dwNumEntries', ctypes.c_uint32),
|
1884
|
+
('table', MIB_IPNETROW * ctypes.cast(ipnet_table.value, ctypes.POINTER(ctypes.c_ulong)).contents.value)
|
1885
|
+
]
|
1884
1886
|
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1887
|
+
ipnet_table = ctypes.cast(ipnet_table, ctypes.POINTER(MIB_IPNETTABLE))
|
1888
|
+
for ipnet_row in ipnet_table.contents.table:
|
1889
|
+
if (ipnet_row.dwType != MIB_IPNET_TYPE_DYNAMIC and ipnet_row.dwType != MIB_IPNET_TYPE_STATIC):
|
1890
|
+
continue
|
1891
|
+
arp_tlv = bytes()
|
1892
|
+
arp_tlv += tlv_pack(TLV_TYPE_IP, struct.pack('<L', ipnet_row.dwAddr))
|
1893
|
+
arp_tlv += tlv_pack(TLV_TYPE_MAC_ADDRESS, bytes(ipnet_row.bPhysAddr)[:ipnet_row.dwPhysAddrLen])
|
1894
|
+
arp_tlv += tlv_pack(TLV_TYPE_MAC_NAME, str(ipnet_row.dwIndex))
|
1895
|
+
response += tlv_pack(TLV_TYPE_ARP_ENTRY, arp_tlv)
|
1896
|
+
|
1897
|
+
elif sys.platform.startswith('linux'):
|
1898
|
+
arp_cache_file = '/proc/net/arp'
|
1899
|
+
if not os.path.exists(arp_cache_file):
|
1900
|
+
return ERROR_NOT_SUPPORTED, response
|
1901
|
+
|
1902
|
+
with open(arp_cache_file, 'r') as arp_cache:
|
1903
|
+
lines = arp_cache.readlines()
|
1904
|
+
for line in lines[1:]:
|
1905
|
+
fields = line.split()
|
1906
|
+
ip_address = fields[0]
|
1907
|
+
mac_address = fields[3]
|
1908
|
+
mac_address = binascii.unhexlify(mac_address.replace(':', ''))
|
1909
|
+
interface_name = fields[5]
|
1910
|
+
arp_tlv = bytes()
|
1911
|
+
arp_tlv += tlv_pack(TLV_TYPE_IP, socket.inet_aton(ip_address))
|
1912
|
+
arp_tlv += tlv_pack(TLV_TYPE_MAC_ADDRESS, mac_address)
|
1913
|
+
arp_tlv += tlv_pack(TLV_TYPE_MAC_NAME, interface_name)
|
1914
|
+
response += tlv_pack(TLV_TYPE_ARP_ENTRY, arp_tlv)
|
1894
1915
|
return ERROR_SUCCESS, response
|
1895
1916
|
|
1896
1917
|
@register_function
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|