metasploit-payloads 2.0.113 → 2.0.115

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/data/android/meterpreter.jar +0 -0
  4. data/data/android/metstage.jar +0 -0
  5. data/data/android/shell.jar +0 -0
  6. data/data/meterpreter/elevator.x64.debug.dll +0 -0
  7. data/data/meterpreter/elevator.x64.dll +0 -0
  8. data/data/meterpreter/elevator.x86.debug.dll +0 -0
  9. data/data/meterpreter/elevator.x86.dll +0 -0
  10. data/data/meterpreter/ext_server_bofloader.x64.debug.dll +0 -0
  11. data/data/meterpreter/ext_server_bofloader.x64.dll +0 -0
  12. data/data/meterpreter/ext_server_bofloader.x86.debug.dll +0 -0
  13. data/data/meterpreter/ext_server_bofloader.x86.dll +0 -0
  14. data/data/meterpreter/ext_server_espia.x64.debug.dll +0 -0
  15. data/data/meterpreter/ext_server_espia.x64.dll +0 -0
  16. data/data/meterpreter/ext_server_espia.x86.debug.dll +0 -0
  17. data/data/meterpreter/ext_server_espia.x86.dll +0 -0
  18. data/data/meterpreter/ext_server_extapi.x64.debug.dll +0 -0
  19. data/data/meterpreter/ext_server_extapi.x64.dll +0 -0
  20. data/data/meterpreter/ext_server_extapi.x86.debug.dll +0 -0
  21. data/data/meterpreter/ext_server_extapi.x86.dll +0 -0
  22. data/data/meterpreter/ext_server_incognito.x64.debug.dll +0 -0
  23. data/data/meterpreter/ext_server_incognito.x64.dll +0 -0
  24. data/data/meterpreter/ext_server_incognito.x86.debug.dll +0 -0
  25. data/data/meterpreter/ext_server_incognito.x86.dll +0 -0
  26. data/data/meterpreter/ext_server_kiwi.x64.debug.dll +0 -0
  27. data/data/meterpreter/ext_server_kiwi.x64.dll +0 -0
  28. data/data/meterpreter/ext_server_kiwi.x86.debug.dll +0 -0
  29. data/data/meterpreter/ext_server_kiwi.x86.dll +0 -0
  30. data/data/meterpreter/ext_server_lanattacks.x64.debug.dll +0 -0
  31. data/data/meterpreter/ext_server_lanattacks.x64.dll +0 -0
  32. data/data/meterpreter/ext_server_lanattacks.x86.debug.dll +0 -0
  33. data/data/meterpreter/ext_server_lanattacks.x86.dll +0 -0
  34. data/data/meterpreter/ext_server_peinjector.x64.debug.dll +0 -0
  35. data/data/meterpreter/ext_server_peinjector.x64.dll +0 -0
  36. data/data/meterpreter/ext_server_peinjector.x86.debug.dll +0 -0
  37. data/data/meterpreter/ext_server_peinjector.x86.dll +0 -0
  38. data/data/meterpreter/ext_server_powershell.x64.debug.dll +0 -0
  39. data/data/meterpreter/ext_server_powershell.x64.dll +0 -0
  40. data/data/meterpreter/ext_server_powershell.x86.debug.dll +0 -0
  41. data/data/meterpreter/ext_server_powershell.x86.dll +0 -0
  42. data/data/meterpreter/ext_server_priv.x64.debug.dll +0 -0
  43. data/data/meterpreter/ext_server_priv.x64.dll +0 -0
  44. data/data/meterpreter/ext_server_priv.x86.debug.dll +0 -0
  45. data/data/meterpreter/ext_server_priv.x86.dll +0 -0
  46. data/data/meterpreter/ext_server_python.x64.debug.dll +0 -0
  47. data/data/meterpreter/ext_server_python.x64.dll +0 -0
  48. data/data/meterpreter/ext_server_python.x86.debug.dll +0 -0
  49. data/data/meterpreter/ext_server_python.x86.dll +0 -0
  50. data/data/meterpreter/ext_server_sniffer.x64.dll +0 -0
  51. data/data/meterpreter/ext_server_sniffer.x86.dll +0 -0
  52. data/data/meterpreter/ext_server_stdapi.py +53 -32
  53. data/data/meterpreter/ext_server_stdapi.x64.debug.dll +0 -0
  54. data/data/meterpreter/ext_server_stdapi.x64.dll +0 -0
  55. data/data/meterpreter/ext_server_stdapi.x86.debug.dll +0 -0
  56. data/data/meterpreter/ext_server_stdapi.x86.dll +0 -0
  57. data/data/meterpreter/ext_server_unhook.x64.debug.dll +0 -0
  58. data/data/meterpreter/ext_server_unhook.x64.dll +0 -0
  59. data/data/meterpreter/ext_server_unhook.x86.debug.dll +0 -0
  60. data/data/meterpreter/ext_server_unhook.x86.dll +0 -0
  61. data/data/meterpreter/ext_server_winpmem.x64.debug.dll +0 -0
  62. data/data/meterpreter/ext_server_winpmem.x64.dll +0 -0
  63. data/data/meterpreter/ext_server_winpmem.x86.debug.dll +0 -0
  64. data/data/meterpreter/ext_server_winpmem.x86.dll +0 -0
  65. data/data/meterpreter/metsrv.x64.debug.dll +0 -0
  66. data/data/meterpreter/metsrv.x64.dll +0 -0
  67. data/data/meterpreter/metsrv.x86.debug.dll +0 -0
  68. data/data/meterpreter/metsrv.x86.dll +0 -0
  69. data/data/meterpreter/screenshot.x64.debug.dll +0 -0
  70. data/data/meterpreter/screenshot.x64.dll +0 -0
  71. data/data/meterpreter/screenshot.x86.debug.dll +0 -0
  72. data/data/meterpreter/screenshot.x86.dll +0 -0
  73. data/lib/metasploit-payloads/version.rb +1 -1
  74. data.tar.gz.sig +0 -0
  75. metadata +2 -2
  76. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dc5e006186337d50009cb0436f562ab25cc109867c07a6cde0734e29aa1a0ab
4
- data.tar.gz: 024611f12e3b854a9a033d7d76d284773ebb434cf491118254231fe999301a10
3
+ metadata.gz: e5606468f93fafcfd10a19cebe7f6935e4e9de276405451e116003f78f9c582a
4
+ data.tar.gz: 63d7b178e2533ff4ff4937c3de0081862cda0f51ee1f935cc76b3a78e0c44be9
5
5
  SHA512:
6
- metadata.gz: 95ff44c78979d456f703e7ceffbb93354e04526ec0ba1e20d1e9ef5e4cac0cebec34cbf1b5e69ae02a9fd3a2bd39557e8f7f69c1f9fbcca09a3c6d7cbc49dbb7
7
- data.tar.gz: d95484a3f3c8cf1e916d0c2033854567c54499fd3d97bcbcd79ca0968e227725218067b9f39feefdbf3c169bfef39baaec208ab9d94d2149d9d271e447dd631c
6
+ metadata.gz: ec840ef0f8f74de3a39f5e0861036d4a5621efb9542aa07116551f2147ce1855236d09ed53ac1c212b2df019ea913d843a239d133a652588837cee29c2748cbd
7
+ data.tar.gz: 329f24668a95bfa226b0c9131e7cdadc5bdf04410ba662d88da879d7f00d03f1f55a85f9af256a3ca5b6d84726696a10af99e68f9fa50f751cb35036e2c06e05
checksums.yaml.gz.sig CHANGED
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
- MIB_IPNET_TYPE_DYNAMIC = 3
1856
- MIB_IPNET_TYPE_STATIC = 4
1856
+ if has_windll:
1857
+ MIB_IPNET_TYPE_DYNAMIC = 3
1858
+ MIB_IPNET_TYPE_STATIC = 4
1857
1859
 
1858
- GetIpNetTable = ctypes.windll.iphlpapi.GetIpNetTable
1859
- GetIpNetTable.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_ulong), ctypes.c_long]
1860
- GetIpNetTable.restype = ctypes.c_ulong
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
- ipnet_table = None
1863
- size = ctypes.c_ulong(0)
1864
- result = GetIpNetTable(ipnet_table, size, False)
1864
+ ipnet_table = None
1865
+ size = ctypes.c_ulong(0)
1866
+ result = GetIpNetTable(ipnet_table, size, False)
1865
1867
 
1866
- if result == ERROR_INSUFFICIENT_BUFFER:
1867
- ipnet_table = ctypes.cast(ctypes.create_string_buffer(bytes(), size.value), ctypes.c_void_p)
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
- elif result != ERROR_SUCCESS and result != ERROR_NO_DATA:
1870
- return error_result_windows(result), response
1871
+ elif result != ERROR_SUCCESS and result != ERROR_NO_DATA:
1872
+ return error_result_windows(result), response
1871
1873
 
1872
- if not ipnet_table:
1873
- return error_result_windows(), response
1874
+ if not ipnet_table:
1875
+ return error_result_windows(), response
1874
1876
 
1875
- result = GetIpNetTable(ipnet_table, size, False)
1876
- if result != ERROR_SUCCESS:
1877
- return error_result_windows(result), response
1877
+ result = GetIpNetTable(ipnet_table, size, False)
1878
+ if result != ERROR_SUCCESS:
1879
+ return error_result_windows(result), response
1878
1880
 
1879
- class MIB_IPNETTABLE(ctypes.Structure):
1880
- _fields_ = [
1881
- ('dwNumEntries', ctypes.c_uint32),
1882
- ('table', MIB_IPNETROW * ctypes.cast(ipnet_table.value, ctypes.POINTER(ctypes.c_ulong)).contents.value)
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
- ipnet_table = ctypes.cast(ipnet_table, ctypes.POINTER(MIB_IPNETTABLE))
1886
- for ipnet_row in ipnet_table.contents.table:
1887
- if (ipnet_row.dwType != MIB_IPNET_TYPE_DYNAMIC and ipnet_row.dwType != MIB_IPNET_TYPE_STATIC):
1888
- continue
1889
- arp_tlv = bytes()
1890
- arp_tlv += tlv_pack(TLV_TYPE_IP, struct.pack('<L', ipnet_row.dwAddr))
1891
- arp_tlv += tlv_pack(TLV_TYPE_MAC_ADDRESS, bytes(ipnet_row.bPhysAddr)[:ipnet_row.dwPhysAddrLen])
1892
- arp_tlv += tlv_pack(TLV_TYPE_MAC_NAME, str(ipnet_row.dwIndex))
1893
- response += tlv_pack(TLV_TYPE_ARP_ENTRY, arp_tlv)
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
@@ -1,6 +1,6 @@
1
1
  # -*- coding:binary -*-
2
2
  module MetasploitPayloads
3
- VERSION = '2.0.113'
3
+ VERSION = '2.0.115'
4
4
 
5
5
  def self.version
6
6
  VERSION
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-payloads
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.113
4
+ version: 2.0.115
5
5
  platform: ruby
6
6
  authors:
7
7
  - OJ Reeves
@@ -96,7 +96,7 @@ cert_chain:
96
96
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
97
97
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
98
98
  -----END CERTIFICATE-----
99
- date: 2023-02-24 00:00:00.000000000 Z
99
+ date: 2023-02-28 00:00:00.000000000 Z
100
100
  dependencies:
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: rake
metadata.gz.sig CHANGED
Binary file