librex 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +4 -0
- data/lib/rex.rb +101 -0
- data/lib/rex.rb.ts.rb +70 -0
- data/lib/rex/LICENSE +29 -0
- data/lib/rex/arch.rb +103 -0
- data/lib/rex/arch/sparc.rb +75 -0
- data/lib/rex/arch/sparc.rb.ut.rb +18 -0
- data/lib/rex/arch/x86.rb +513 -0
- data/lib/rex/arch/x86.rb.ut.rb +93 -0
- data/lib/rex/assembly/nasm.rb +100 -0
- data/lib/rex/assembly/nasm.rb.ut.rb +22 -0
- data/lib/rex/codepage.map +104 -0
- data/lib/rex/compat.rb +281 -0
- data/lib/rex/constants.rb +113 -0
- data/lib/rex/elfparsey.rb +11 -0
- data/lib/rex/elfparsey/elf.rb +123 -0
- data/lib/rex/elfparsey/elfbase.rb +260 -0
- data/lib/rex/elfparsey/exceptions.rb +27 -0
- data/lib/rex/elfscan.rb +12 -0
- data/lib/rex/elfscan/scanner.rb +207 -0
- data/lib/rex/elfscan/search.rb +46 -0
- data/lib/rex/encoder/alpha2.rb +31 -0
- data/lib/rex/encoder/alpha2/alpha_mixed.rb +68 -0
- data/lib/rex/encoder/alpha2/alpha_upper.rb +79 -0
- data/lib/rex/encoder/alpha2/generic.rb +113 -0
- data/lib/rex/encoder/alpha2/unicode_mixed.rb +117 -0
- data/lib/rex/encoder/alpha2/unicode_upper.rb +129 -0
- data/lib/rex/encoder/ndr.rb +89 -0
- data/lib/rex/encoder/ndr.rb.ut.rb +44 -0
- data/lib/rex/encoder/nonalpha.rb +61 -0
- data/lib/rex/encoder/nonupper.rb +64 -0
- data/lib/rex/encoder/xdr.rb +106 -0
- data/lib/rex/encoder/xdr.rb.ut.rb +29 -0
- data/lib/rex/encoder/xor.rb +69 -0
- data/lib/rex/encoder/xor/dword.rb +13 -0
- data/lib/rex/encoder/xor/dword_additive.rb +13 -0
- data/lib/rex/encoders/xor_dword.rb +35 -0
- data/lib/rex/encoders/xor_dword_additive.rb +53 -0
- data/lib/rex/encoders/xor_dword_additive.rb.ut.rb +12 -0
- data/lib/rex/encoding/xor.rb +20 -0
- data/lib/rex/encoding/xor.rb.ts.rb +14 -0
- data/lib/rex/encoding/xor/byte.rb +15 -0
- data/lib/rex/encoding/xor/byte.rb.ut.rb +21 -0
- data/lib/rex/encoding/xor/dword.rb +21 -0
- data/lib/rex/encoding/xor/dword.rb.ut.rb +15 -0
- data/lib/rex/encoding/xor/dword_additive.rb +92 -0
- data/lib/rex/encoding/xor/dword_additive.rb.ut.rb +15 -0
- data/lib/rex/encoding/xor/exceptions.rb +17 -0
- data/lib/rex/encoding/xor/generic.rb +146 -0
- data/lib/rex/encoding/xor/generic.rb.ut.rb +120 -0
- data/lib/rex/encoding/xor/qword.rb +15 -0
- data/lib/rex/encoding/xor/word.rb +21 -0
- data/lib/rex/encoding/xor/word.rb.ut.rb +13 -0
- data/lib/rex/exceptions.rb +275 -0
- data/lib/rex/exceptions.rb.ut.rb +44 -0
- data/lib/rex/exploitation/cmdstager.rb +133 -0
- data/lib/rex/exploitation/egghunter.rb +143 -0
- data/lib/rex/exploitation/egghunter.rb.ut.rb +25 -0
- data/lib/rex/exploitation/encryptjs.rb +77 -0
- data/lib/rex/exploitation/heaplib.js.b64 +331 -0
- data/lib/rex/exploitation/heaplib.rb +94 -0
- data/lib/rex/exploitation/javascriptosdetect.rb +735 -0
- data/lib/rex/exploitation/obfuscatejs.rb +335 -0
- data/lib/rex/exploitation/opcodedb.rb +818 -0
- data/lib/rex/exploitation/opcodedb.rb.ut.rb +279 -0
- data/lib/rex/exploitation/seh.rb +92 -0
- data/lib/rex/exploitation/seh.rb.ut.rb +19 -0
- data/lib/rex/file.rb +84 -0
- data/lib/rex/file.rb.ut.rb +16 -0
- data/lib/rex/image_source.rb +12 -0
- data/lib/rex/image_source/disk.rb +60 -0
- data/lib/rex/image_source/image_source.rb +46 -0
- data/lib/rex/image_source/memory.rb +37 -0
- data/lib/rex/io/bidirectional_pipe.rb +157 -0
- data/lib/rex/io/datagram_abstraction.rb +35 -0
- data/lib/rex/io/stream.rb +313 -0
- data/lib/rex/io/stream_abstraction.rb +186 -0
- data/lib/rex/io/stream_server.rb +211 -0
- data/lib/rex/job_container.rb +202 -0
- data/lib/rex/logging.rb +4 -0
- data/lib/rex/logging/log_dispatcher.rb +179 -0
- data/lib/rex/logging/log_sink.rb +42 -0
- data/lib/rex/logging/sinks/flatfile.rb +55 -0
- data/lib/rex/logging/sinks/stderr.rb +43 -0
- data/lib/rex/machparsey.rb +9 -0
- data/lib/rex/machparsey/exceptions.rb +34 -0
- data/lib/rex/machparsey/mach.rb +209 -0
- data/lib/rex/machparsey/machbase.rb +408 -0
- data/lib/rex/machscan.rb +9 -0
- data/lib/rex/machscan/scanner.rb +217 -0
- data/lib/rex/mime.rb +9 -0
- data/lib/rex/mime/header.rb +75 -0
- data/lib/rex/mime/message.rb +112 -0
- data/lib/rex/mime/part.rb +20 -0
- data/lib/rex/nop/opty2.rb +108 -0
- data/lib/rex/nop/opty2.rb.ut.rb +23 -0
- data/lib/rex/nop/opty2_tables.rb +300 -0
- data/lib/rex/ole.rb +128 -0
- data/lib/rex/ole/clsid.rb +47 -0
- data/lib/rex/ole/difat.rb +141 -0
- data/lib/rex/ole/directory.rb +230 -0
- data/lib/rex/ole/direntry.rb +240 -0
- data/lib/rex/ole/fat.rb +99 -0
- data/lib/rex/ole/header.rb +204 -0
- data/lib/rex/ole/minifat.rb +77 -0
- data/lib/rex/ole/samples/create_ole.rb +27 -0
- data/lib/rex/ole/samples/dir.rb +35 -0
- data/lib/rex/ole/samples/dump_stream.rb +34 -0
- data/lib/rex/ole/samples/ole_info.rb +23 -0
- data/lib/rex/ole/storage.rb +395 -0
- data/lib/rex/ole/stream.rb +53 -0
- data/lib/rex/ole/substorage.rb +49 -0
- data/lib/rex/ole/util.rb +157 -0
- data/lib/rex/parser/arguments.rb +97 -0
- data/lib/rex/parser/arguments.rb.ut.rb +67 -0
- data/lib/rex/parser/ini.rb +185 -0
- data/lib/rex/parser/ini.rb.ut.rb +29 -0
- data/lib/rex/parser/nmap_xml.rb +111 -0
- data/lib/rex/payloads.rb +1 -0
- data/lib/rex/payloads/win32.rb +2 -0
- data/lib/rex/payloads/win32/common.rb +26 -0
- data/lib/rex/payloads/win32/kernel.rb +53 -0
- data/lib/rex/payloads/win32/kernel/common.rb +54 -0
- data/lib/rex/payloads/win32/kernel/migration.rb +12 -0
- data/lib/rex/payloads/win32/kernel/recovery.rb +50 -0
- data/lib/rex/payloads/win32/kernel/stager.rb +171 -0
- data/lib/rex/peparsey.rb +12 -0
- data/lib/rex/peparsey/exceptions.rb +32 -0
- data/lib/rex/peparsey/pe.rb +188 -0
- data/lib/rex/peparsey/pe_memdump.rb +63 -0
- data/lib/rex/peparsey/pebase.rb +1655 -0
- data/lib/rex/peparsey/section.rb +136 -0
- data/lib/rex/pescan.rb +13 -0
- data/lib/rex/pescan/analyze.rb +309 -0
- data/lib/rex/pescan/scanner.rb +206 -0
- data/lib/rex/pescan/search.rb +56 -0
- data/lib/rex/platforms.rb +1 -0
- data/lib/rex/platforms/windows.rb +51 -0
- data/lib/rex/poly.rb +132 -0
- data/lib/rex/poly/block.rb +468 -0
- data/lib/rex/poly/register.rb +100 -0
- data/lib/rex/poly/register/x86.rb +40 -0
- data/lib/rex/post.rb +8 -0
- data/lib/rex/post/dir.rb +51 -0
- data/lib/rex/post/file.rb +172 -0
- data/lib/rex/post/file_stat.rb +220 -0
- data/lib/rex/post/gen.pl +13 -0
- data/lib/rex/post/io.rb +182 -0
- data/lib/rex/post/meterpreter.rb +4 -0
- data/lib/rex/post/meterpreter/channel.rb +438 -0
- data/lib/rex/post/meterpreter/channel_container.rb +54 -0
- data/lib/rex/post/meterpreter/channels/pool.rb +160 -0
- data/lib/rex/post/meterpreter/channels/pools/file.rb +62 -0
- data/lib/rex/post/meterpreter/channels/pools/stream_pool.rb +103 -0
- data/lib/rex/post/meterpreter/channels/stream.rb +87 -0
- data/lib/rex/post/meterpreter/client.rb +335 -0
- data/lib/rex/post/meterpreter/client_core.rb +274 -0
- data/lib/rex/post/meterpreter/dependencies.rb +3 -0
- data/lib/rex/post/meterpreter/extension.rb +32 -0
- data/lib/rex/post/meterpreter/extensions/espia/espia.rb +58 -0
- data/lib/rex/post/meterpreter/extensions/espia/tlv.rb +16 -0
- data/lib/rex/post/meterpreter/extensions/incognito/incognito.rb +94 -0
- data/lib/rex/post/meterpreter/extensions/incognito/tlv.rb +21 -0
- data/lib/rex/post/meterpreter/extensions/priv/fs.rb +118 -0
- data/lib/rex/post/meterpreter/extensions/priv/passwd.rb +61 -0
- data/lib/rex/post/meterpreter/extensions/priv/priv.rb +104 -0
- data/lib/rex/post/meterpreter/extensions/priv/tlv.rb +28 -0
- data/lib/rex/post/meterpreter/extensions/sniffer/sniffer.rb +100 -0
- data/lib/rex/post/meterpreter/extensions/sniffer/tlv.rb +24 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/constants.rb +333 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb +273 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb +235 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb +103 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb +48 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/config.rb +144 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/interface.rb +73 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/route.rb +56 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/socket.rb +137 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb +167 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_server_channel.rb +167 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/udp_channel.rb +192 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/stdapi.rb +139 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb +97 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/event_log.rb +184 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb +41 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb +61 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb +361 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/image.rb +129 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb +55 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb +336 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/thread.rb +141 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb +279 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb +182 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb +102 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb +174 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/tlv.rb +185 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/ui.rb +227 -0
- data/lib/rex/post/meterpreter/inbound_packet_handler.rb +30 -0
- data/lib/rex/post/meterpreter/object_aliases.rb +83 -0
- data/lib/rex/post/meterpreter/packet.rb +596 -0
- data/lib/rex/post/meterpreter/packet_dispatcher.rb +409 -0
- data/lib/rex/post/meterpreter/packet_parser.rb +94 -0
- data/lib/rex/post/meterpreter/packet_response_waiter.rb +83 -0
- data/lib/rex/post/meterpreter/ui/console.rb +135 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher.rb +62 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb +595 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/espia.rb +108 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb +241 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv.rb +61 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/elevate.rb +98 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb +51 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp.rb +132 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb +187 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb +63 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb +376 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb +270 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb +484 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/ui.rb +315 -0
- data/lib/rex/post/meterpreter/ui/console/interactive_channel.rb +95 -0
- data/lib/rex/post/permission.rb +26 -0
- data/lib/rex/post/process.rb +57 -0
- data/lib/rex/post/thread.rb +57 -0
- data/lib/rex/post/ui.rb +52 -0
- data/lib/rex/proto.rb +12 -0
- data/lib/rex/proto.rb.ts.rb +8 -0
- data/lib/rex/proto/dcerpc.rb +6 -0
- data/lib/rex/proto/dcerpc.rb.ts.rb +9 -0
- data/lib/rex/proto/dcerpc/client.rb +358 -0
- data/lib/rex/proto/dcerpc/client.rb.ut.rb +491 -0
- data/lib/rex/proto/dcerpc/exceptions.rb +150 -0
- data/lib/rex/proto/dcerpc/handle.rb +47 -0
- data/lib/rex/proto/dcerpc/handle.rb.ut.rb +85 -0
- data/lib/rex/proto/dcerpc/ndr.rb +72 -0
- data/lib/rex/proto/dcerpc/ndr.rb.ut.rb +41 -0
- data/lib/rex/proto/dcerpc/packet.rb +253 -0
- data/lib/rex/proto/dcerpc/packet.rb.ut.rb +56 -0
- data/lib/rex/proto/dcerpc/response.rb +186 -0
- data/lib/rex/proto/dcerpc/response.rb.ut.rb +15 -0
- data/lib/rex/proto/dcerpc/uuid.rb +84 -0
- data/lib/rex/proto/dcerpc/uuid.rb.ut.rb +46 -0
- data/lib/rex/proto/drda.rb +5 -0
- data/lib/rex/proto/drda.rb.ts.rb +17 -0
- data/lib/rex/proto/drda/constants.rb +49 -0
- data/lib/rex/proto/drda/constants.rb.ut.rb +23 -0
- data/lib/rex/proto/drda/packet.rb +252 -0
- data/lib/rex/proto/drda/packet.rb.ut.rb +109 -0
- data/lib/rex/proto/drda/utils.rb +123 -0
- data/lib/rex/proto/drda/utils.rb.ut.rb +84 -0
- data/lib/rex/proto/http.rb +5 -0
- data/lib/rex/proto/http.rb.ts.rb +12 -0
- data/lib/rex/proto/http/client.rb +817 -0
- data/lib/rex/proto/http/client.rb.ut.rb +93 -0
- data/lib/rex/proto/http/handler.rb +46 -0
- data/lib/rex/proto/http/handler/erb.rb +128 -0
- data/lib/rex/proto/http/handler/erb.rb.ut.rb +21 -0
- data/lib/rex/proto/http/handler/erb.rb.ut.rb.rhtml +1 -0
- data/lib/rex/proto/http/handler/proc.rb +54 -0
- data/lib/rex/proto/http/handler/proc.rb.ut.rb +24 -0
- data/lib/rex/proto/http/header.rb +161 -0
- data/lib/rex/proto/http/header.rb.ut.rb +46 -0
- data/lib/rex/proto/http/packet.rb +394 -0
- data/lib/rex/proto/http/packet.rb.ut.rb +165 -0
- data/lib/rex/proto/http/request.rb +356 -0
- data/lib/rex/proto/http/request.rb.ut.rb +214 -0
- data/lib/rex/proto/http/response.rb +85 -0
- data/lib/rex/proto/http/response.rb.ut.rb +149 -0
- data/lib/rex/proto/http/server.rb +367 -0
- data/lib/rex/proto/http/server.rb.ut.rb +79 -0
- data/lib/rex/proto/smb.rb +7 -0
- data/lib/rex/proto/smb.rb.ts.rb +8 -0
- data/lib/rex/proto/smb/client.rb +1733 -0
- data/lib/rex/proto/smb/client.rb.ut.rb +223 -0
- data/lib/rex/proto/smb/constants.rb +1062 -0
- data/lib/rex/proto/smb/constants.rb.ut.rb +18 -0
- data/lib/rex/proto/smb/crypt.rb +95 -0
- data/lib/rex/proto/smb/crypt.rb.ut.rb +20 -0
- data/lib/rex/proto/smb/evasions.rb +65 -0
- data/lib/rex/proto/smb/exceptions.rb +846 -0
- data/lib/rex/proto/smb/simpleclient.rb +292 -0
- data/lib/rex/proto/smb/simpleclient.rb.ut.rb +128 -0
- data/lib/rex/proto/smb/utils.rb +514 -0
- data/lib/rex/proto/smb/utils.rb.ut.rb +20 -0
- data/lib/rex/proto/sunrpc.rb +1 -0
- data/lib/rex/proto/sunrpc/client.rb +195 -0
- data/lib/rex/script.rb +42 -0
- data/lib/rex/script/base.rb +59 -0
- data/lib/rex/script/meterpreter.rb +9 -0
- data/lib/rex/script/shell.rb +9 -0
- data/lib/rex/service.rb +48 -0
- data/lib/rex/service_manager.rb +141 -0
- data/lib/rex/service_manager.rb.ut.rb +32 -0
- data/lib/rex/services/local_relay.rb +423 -0
- data/lib/rex/socket.rb +586 -0
- data/lib/rex/socket.rb.ut.rb +86 -0
- data/lib/rex/socket/comm.rb +119 -0
- data/lib/rex/socket/comm/local.rb +409 -0
- data/lib/rex/socket/comm/local.rb.ut.rb +75 -0
- data/lib/rex/socket/ip.rb +129 -0
- data/lib/rex/socket/parameters.rb +345 -0
- data/lib/rex/socket/parameters.rb.ut.rb +51 -0
- data/lib/rex/socket/range_walker.rb +295 -0
- data/lib/rex/socket/range_walker.rb.ut.rb +55 -0
- data/lib/rex/socket/ssl_tcp.rb +184 -0
- data/lib/rex/socket/ssl_tcp.rb.ut.rb +39 -0
- data/lib/rex/socket/ssl_tcp_server.rb +122 -0
- data/lib/rex/socket/ssl_tcp_server.rb.ut.rb +51 -0
- data/lib/rex/socket/subnet_walker.rb +75 -0
- data/lib/rex/socket/subnet_walker.rb.ut.rb +28 -0
- data/lib/rex/socket/switch_board.rb +272 -0
- data/lib/rex/socket/switch_board.rb.ut.rb +52 -0
- data/lib/rex/socket/tcp.rb +76 -0
- data/lib/rex/socket/tcp.rb.ut.rb +64 -0
- data/lib/rex/socket/tcp_server.rb +67 -0
- data/lib/rex/socket/tcp_server.rb.ut.rb +44 -0
- data/lib/rex/socket/udp.rb +157 -0
- data/lib/rex/socket/udp.rb.ut.rb +44 -0
- data/lib/rex/struct2.rb +5 -0
- data/lib/rex/struct2/c_struct.rb +181 -0
- data/lib/rex/struct2/c_struct_template.rb +39 -0
- data/lib/rex/struct2/constant.rb +26 -0
- data/lib/rex/struct2/element.rb +44 -0
- data/lib/rex/struct2/generic.rb +73 -0
- data/lib/rex/struct2/restraint.rb +54 -0
- data/lib/rex/struct2/s_string.rb +72 -0
- data/lib/rex/struct2/s_struct.rb +111 -0
- data/lib/rex/sync.rb +6 -0
- data/lib/rex/sync/event.rb +94 -0
- data/lib/rex/sync/read_write_lock.rb +176 -0
- data/lib/rex/sync/ref.rb +57 -0
- data/lib/rex/sync/thread_safe.rb +82 -0
- data/lib/rex/test.rb +35 -0
- data/lib/rex/text.rb +1029 -0
- data/lib/rex/text.rb.ut.rb +168 -0
- data/lib/rex/time.rb +65 -0
- data/lib/rex/transformer.rb +115 -0
- data/lib/rex/transformer.rb.ut.rb +38 -0
- data/lib/rex/ui.rb +21 -0
- data/lib/rex/ui/interactive.rb +252 -0
- data/lib/rex/ui/output.rb +80 -0
- data/lib/rex/ui/output/none.rb +18 -0
- data/lib/rex/ui/progress_tracker.rb +96 -0
- data/lib/rex/ui/subscriber.rb +149 -0
- data/lib/rex/ui/text/color.rb +97 -0
- data/lib/rex/ui/text/color.rb.ut.rb +18 -0
- data/lib/rex/ui/text/dispatcher_shell.rb +382 -0
- data/lib/rex/ui/text/input.rb +117 -0
- data/lib/rex/ui/text/input/buffer.rb +75 -0
- data/lib/rex/ui/text/input/readline.rb +129 -0
- data/lib/rex/ui/text/input/socket.rb +95 -0
- data/lib/rex/ui/text/input/stdio.rb +45 -0
- data/lib/rex/ui/text/irb_shell.rb +55 -0
- data/lib/rex/ui/text/output.rb +80 -0
- data/lib/rex/ui/text/output/buffer.rb +65 -0
- data/lib/rex/ui/text/output/file.rb +37 -0
- data/lib/rex/ui/text/output/socket.rb +43 -0
- data/lib/rex/ui/text/output/stdio.rb +40 -0
- data/lib/rex/ui/text/progress_tracker.rb +56 -0
- data/lib/rex/ui/text/progress_tracker.rb.ut.rb +34 -0
- data/lib/rex/ui/text/shell.rb +321 -0
- data/lib/rex/ui/text/table.rb +254 -0
- data/lib/rex/ui/text/table.rb.ut.rb +55 -0
- data/lib/rex/zip.rb +93 -0
- data/lib/rex/zip/archive.rb +91 -0
- data/lib/rex/zip/blocks.rb +182 -0
- data/lib/rex/zip/entry.rb +95 -0
- data/lib/rex/zip/samples/comment.rb +32 -0
- data/lib/rex/zip/samples/mkwar.rb +138 -0
- data/lib/rex/zip/samples/mkzip.rb +19 -0
- data/lib/rex/zip/samples/recursive.rb +58 -0
- metadata +435 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Add a file from memory and save it.
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
msfbase = __FILE__
|
|
8
|
+
while File.symlink?(msfbase)
|
|
9
|
+
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
10
|
+
end
|
|
11
|
+
inc = File.dirname(msfbase) + '/../../..'
|
|
12
|
+
$:.unshift(inc)
|
|
13
|
+
|
|
14
|
+
require 'rex/zip'
|
|
15
|
+
|
|
16
|
+
# example usage
|
|
17
|
+
zip = Rex::Zip::Archive.new
|
|
18
|
+
zip.add_file("elite.txt", "A" * 1024)
|
|
19
|
+
zip.save_to("lolz.zip")
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
msfbase = __FILE__
|
|
4
|
+
while File.symlink?(msfbase)
|
|
5
|
+
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
6
|
+
end
|
|
7
|
+
inc = File.dirname(msfbase) + '/../../..'
|
|
8
|
+
$:.unshift(inc)
|
|
9
|
+
|
|
10
|
+
require 'rex/zip'
|
|
11
|
+
|
|
12
|
+
out = "test.zip"
|
|
13
|
+
dir = "/var/www"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def add_file(zip, path)
|
|
17
|
+
zip.add_file(path)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# If it's a directory, Walk the directory and add each item
|
|
23
|
+
#
|
|
24
|
+
def add_files(zip, path, recursive = nil)
|
|
25
|
+
|
|
26
|
+
if (not add_file(zip, path))
|
|
27
|
+
return nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
if (recursive and File.stat(path).directory?)
|
|
31
|
+
begin
|
|
32
|
+
dir = Dir.open(path)
|
|
33
|
+
rescue
|
|
34
|
+
# skip this file
|
|
35
|
+
return nil
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
dir.each { |f|
|
|
39
|
+
next if (f == '.')
|
|
40
|
+
next if (f == '..')
|
|
41
|
+
|
|
42
|
+
full_path = path + '/' + f
|
|
43
|
+
st = File.stat(full_path)
|
|
44
|
+
if (st.directory?)
|
|
45
|
+
puts "adding dir #{full_path}"
|
|
46
|
+
add_files(zip, full_path, recursive)
|
|
47
|
+
elsif (st.file?)
|
|
48
|
+
puts "adding file #{full_path}"
|
|
49
|
+
add_file(zip, full_path)
|
|
50
|
+
end
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
zip = Rex::Zip::Archive.new
|
|
57
|
+
add_files(zip, dir, TRUE)
|
|
58
|
+
zip.save_to(out)
|
metadata
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: librex
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.0.1
|
|
10
|
+
platform: ruby
|
|
11
|
+
authors:
|
|
12
|
+
- Metasploit Development Team
|
|
13
|
+
- Jacob Hammack
|
|
14
|
+
autorequire:
|
|
15
|
+
bindir: bin
|
|
16
|
+
cert_chain: []
|
|
17
|
+
|
|
18
|
+
date: 2010-04-30 00:00:00 -05:00
|
|
19
|
+
default_executable:
|
|
20
|
+
dependencies: []
|
|
21
|
+
|
|
22
|
+
description: Rex provides a variety of classes useful for security testing and exploit development. Based on svn revision 9179
|
|
23
|
+
email:
|
|
24
|
+
- hdm@metasploit.com
|
|
25
|
+
- jacob.hammack@hammackj.com
|
|
26
|
+
executables: []
|
|
27
|
+
|
|
28
|
+
extensions: []
|
|
29
|
+
|
|
30
|
+
extra_rdoc_files:
|
|
31
|
+
- README
|
|
32
|
+
files:
|
|
33
|
+
- README
|
|
34
|
+
- lib/rex/LICENSE
|
|
35
|
+
- lib/rex/arch/sparc.rb
|
|
36
|
+
- lib/rex/arch/sparc.rb.ut.rb
|
|
37
|
+
- lib/rex/arch/x86.rb
|
|
38
|
+
- lib/rex/arch/x86.rb.ut.rb
|
|
39
|
+
- lib/rex/arch.rb
|
|
40
|
+
- lib/rex/assembly/nasm.rb
|
|
41
|
+
- lib/rex/assembly/nasm.rb.ut.rb
|
|
42
|
+
- lib/rex/codepage.map
|
|
43
|
+
- lib/rex/compat.rb
|
|
44
|
+
- lib/rex/constants.rb
|
|
45
|
+
- lib/rex/elfparsey/elf.rb
|
|
46
|
+
- lib/rex/elfparsey/elfbase.rb
|
|
47
|
+
- lib/rex/elfparsey/exceptions.rb
|
|
48
|
+
- lib/rex/elfparsey.rb
|
|
49
|
+
- lib/rex/elfscan/scanner.rb
|
|
50
|
+
- lib/rex/elfscan/search.rb
|
|
51
|
+
- lib/rex/elfscan.rb
|
|
52
|
+
- lib/rex/encoder/alpha2/alpha_mixed.rb
|
|
53
|
+
- lib/rex/encoder/alpha2/alpha_upper.rb
|
|
54
|
+
- lib/rex/encoder/alpha2/generic.rb
|
|
55
|
+
- lib/rex/encoder/alpha2/unicode_mixed.rb
|
|
56
|
+
- lib/rex/encoder/alpha2/unicode_upper.rb
|
|
57
|
+
- lib/rex/encoder/alpha2.rb
|
|
58
|
+
- lib/rex/encoder/ndr.rb
|
|
59
|
+
- lib/rex/encoder/ndr.rb.ut.rb
|
|
60
|
+
- lib/rex/encoder/nonalpha.rb
|
|
61
|
+
- lib/rex/encoder/nonupper.rb
|
|
62
|
+
- lib/rex/encoder/xdr.rb
|
|
63
|
+
- lib/rex/encoder/xdr.rb.ut.rb
|
|
64
|
+
- lib/rex/encoder/xor/dword.rb
|
|
65
|
+
- lib/rex/encoder/xor/dword_additive.rb
|
|
66
|
+
- lib/rex/encoder/xor.rb
|
|
67
|
+
- lib/rex/encoders/xor_dword.rb
|
|
68
|
+
- lib/rex/encoders/xor_dword_additive.rb
|
|
69
|
+
- lib/rex/encoders/xor_dword_additive.rb.ut.rb
|
|
70
|
+
- lib/rex/encoding/xor/byte.rb
|
|
71
|
+
- lib/rex/encoding/xor/byte.rb.ut.rb
|
|
72
|
+
- lib/rex/encoding/xor/dword.rb
|
|
73
|
+
- lib/rex/encoding/xor/dword.rb.ut.rb
|
|
74
|
+
- lib/rex/encoding/xor/dword_additive.rb
|
|
75
|
+
- lib/rex/encoding/xor/dword_additive.rb.ut.rb
|
|
76
|
+
- lib/rex/encoding/xor/exceptions.rb
|
|
77
|
+
- lib/rex/encoding/xor/generic.rb
|
|
78
|
+
- lib/rex/encoding/xor/generic.rb.ut.rb
|
|
79
|
+
- lib/rex/encoding/xor/qword.rb
|
|
80
|
+
- lib/rex/encoding/xor/word.rb
|
|
81
|
+
- lib/rex/encoding/xor/word.rb.ut.rb
|
|
82
|
+
- lib/rex/encoding/xor.rb
|
|
83
|
+
- lib/rex/encoding/xor.rb.ts.rb
|
|
84
|
+
- lib/rex/exceptions.rb
|
|
85
|
+
- lib/rex/exceptions.rb.ut.rb
|
|
86
|
+
- lib/rex/exploitation/cmdstager.rb
|
|
87
|
+
- lib/rex/exploitation/egghunter.rb
|
|
88
|
+
- lib/rex/exploitation/egghunter.rb.ut.rb
|
|
89
|
+
- lib/rex/exploitation/encryptjs.rb
|
|
90
|
+
- lib/rex/exploitation/heaplib.js.b64
|
|
91
|
+
- lib/rex/exploitation/heaplib.rb
|
|
92
|
+
- lib/rex/exploitation/javascriptosdetect.rb
|
|
93
|
+
- lib/rex/exploitation/obfuscatejs.rb
|
|
94
|
+
- lib/rex/exploitation/opcodedb.rb
|
|
95
|
+
- lib/rex/exploitation/opcodedb.rb.ut.rb
|
|
96
|
+
- lib/rex/exploitation/seh.rb
|
|
97
|
+
- lib/rex/exploitation/seh.rb.ut.rb
|
|
98
|
+
- lib/rex/file.rb
|
|
99
|
+
- lib/rex/file.rb.ut.rb
|
|
100
|
+
- lib/rex/image_source/disk.rb
|
|
101
|
+
- lib/rex/image_source/image_source.rb
|
|
102
|
+
- lib/rex/image_source/memory.rb
|
|
103
|
+
- lib/rex/image_source.rb
|
|
104
|
+
- lib/rex/io/bidirectional_pipe.rb
|
|
105
|
+
- lib/rex/io/datagram_abstraction.rb
|
|
106
|
+
- lib/rex/io/stream.rb
|
|
107
|
+
- lib/rex/io/stream_abstraction.rb
|
|
108
|
+
- lib/rex/io/stream_server.rb
|
|
109
|
+
- lib/rex/job_container.rb
|
|
110
|
+
- lib/rex/logging/log_dispatcher.rb
|
|
111
|
+
- lib/rex/logging/log_sink.rb
|
|
112
|
+
- lib/rex/logging/sinks/flatfile.rb
|
|
113
|
+
- lib/rex/logging/sinks/stderr.rb
|
|
114
|
+
- lib/rex/logging.rb
|
|
115
|
+
- lib/rex/machparsey/exceptions.rb
|
|
116
|
+
- lib/rex/machparsey/mach.rb
|
|
117
|
+
- lib/rex/machparsey/machbase.rb
|
|
118
|
+
- lib/rex/machparsey.rb
|
|
119
|
+
- lib/rex/machscan/scanner.rb
|
|
120
|
+
- lib/rex/machscan.rb
|
|
121
|
+
- lib/rex/mime/header.rb
|
|
122
|
+
- lib/rex/mime/message.rb
|
|
123
|
+
- lib/rex/mime/part.rb
|
|
124
|
+
- lib/rex/mime.rb
|
|
125
|
+
- lib/rex/nop/opty2.rb
|
|
126
|
+
- lib/rex/nop/opty2.rb.ut.rb
|
|
127
|
+
- lib/rex/nop/opty2_tables.rb
|
|
128
|
+
- lib/rex/ole/clsid.rb
|
|
129
|
+
- lib/rex/ole/difat.rb
|
|
130
|
+
- lib/rex/ole/directory.rb
|
|
131
|
+
- lib/rex/ole/direntry.rb
|
|
132
|
+
- lib/rex/ole/fat.rb
|
|
133
|
+
- lib/rex/ole/header.rb
|
|
134
|
+
- lib/rex/ole/minifat.rb
|
|
135
|
+
- lib/rex/ole/samples/create_ole.rb
|
|
136
|
+
- lib/rex/ole/samples/dir.rb
|
|
137
|
+
- lib/rex/ole/samples/dump_stream.rb
|
|
138
|
+
- lib/rex/ole/samples/ole_info.rb
|
|
139
|
+
- lib/rex/ole/storage.rb
|
|
140
|
+
- lib/rex/ole/stream.rb
|
|
141
|
+
- lib/rex/ole/substorage.rb
|
|
142
|
+
- lib/rex/ole/util.rb
|
|
143
|
+
- lib/rex/ole.rb
|
|
144
|
+
- lib/rex/parser/arguments.rb
|
|
145
|
+
- lib/rex/parser/arguments.rb.ut.rb
|
|
146
|
+
- lib/rex/parser/ini.rb
|
|
147
|
+
- lib/rex/parser/ini.rb.ut.rb
|
|
148
|
+
- lib/rex/parser/nmap_xml.rb
|
|
149
|
+
- lib/rex/payloads/win32/common.rb
|
|
150
|
+
- lib/rex/payloads/win32/kernel/common.rb
|
|
151
|
+
- lib/rex/payloads/win32/kernel/migration.rb
|
|
152
|
+
- lib/rex/payloads/win32/kernel/recovery.rb
|
|
153
|
+
- lib/rex/payloads/win32/kernel/stager.rb
|
|
154
|
+
- lib/rex/payloads/win32/kernel.rb
|
|
155
|
+
- lib/rex/payloads/win32.rb
|
|
156
|
+
- lib/rex/payloads.rb
|
|
157
|
+
- lib/rex/peparsey/exceptions.rb
|
|
158
|
+
- lib/rex/peparsey/pe.rb
|
|
159
|
+
- lib/rex/peparsey/pe_memdump.rb
|
|
160
|
+
- lib/rex/peparsey/pebase.rb
|
|
161
|
+
- lib/rex/peparsey/section.rb
|
|
162
|
+
- lib/rex/peparsey.rb
|
|
163
|
+
- lib/rex/pescan/analyze.rb
|
|
164
|
+
- lib/rex/pescan/scanner.rb
|
|
165
|
+
- lib/rex/pescan/search.rb
|
|
166
|
+
- lib/rex/pescan.rb
|
|
167
|
+
- lib/rex/platforms/windows.rb
|
|
168
|
+
- lib/rex/platforms.rb
|
|
169
|
+
- lib/rex/poly/block.rb
|
|
170
|
+
- lib/rex/poly/register/x86.rb
|
|
171
|
+
- lib/rex/poly/register.rb
|
|
172
|
+
- lib/rex/poly.rb
|
|
173
|
+
- lib/rex/post/dir.rb
|
|
174
|
+
- lib/rex/post/file.rb
|
|
175
|
+
- lib/rex/post/file_stat.rb
|
|
176
|
+
- lib/rex/post/gen.pl
|
|
177
|
+
- lib/rex/post/io.rb
|
|
178
|
+
- lib/rex/post/meterpreter/channel.rb
|
|
179
|
+
- lib/rex/post/meterpreter/channel_container.rb
|
|
180
|
+
- lib/rex/post/meterpreter/channels/pool.rb
|
|
181
|
+
- lib/rex/post/meterpreter/channels/pools/file.rb
|
|
182
|
+
- lib/rex/post/meterpreter/channels/pools/stream_pool.rb
|
|
183
|
+
- lib/rex/post/meterpreter/channels/stream.rb
|
|
184
|
+
- lib/rex/post/meterpreter/client.rb
|
|
185
|
+
- lib/rex/post/meterpreter/client_core.rb
|
|
186
|
+
- lib/rex/post/meterpreter/dependencies.rb
|
|
187
|
+
- lib/rex/post/meterpreter/extension.rb
|
|
188
|
+
- lib/rex/post/meterpreter/extensions/espia/espia.rb
|
|
189
|
+
- lib/rex/post/meterpreter/extensions/espia/tlv.rb
|
|
190
|
+
- lib/rex/post/meterpreter/extensions/incognito/incognito.rb
|
|
191
|
+
- lib/rex/post/meterpreter/extensions/incognito/tlv.rb
|
|
192
|
+
- lib/rex/post/meterpreter/extensions/priv/fs.rb
|
|
193
|
+
- lib/rex/post/meterpreter/extensions/priv/passwd.rb
|
|
194
|
+
- lib/rex/post/meterpreter/extensions/priv/priv.rb
|
|
195
|
+
- lib/rex/post/meterpreter/extensions/priv/tlv.rb
|
|
196
|
+
- lib/rex/post/meterpreter/extensions/sniffer/sniffer.rb
|
|
197
|
+
- lib/rex/post/meterpreter/extensions/sniffer/tlv.rb
|
|
198
|
+
- lib/rex/post/meterpreter/extensions/stdapi/constants.rb
|
|
199
|
+
- lib/rex/post/meterpreter/extensions/stdapi/fs/dir.rb
|
|
200
|
+
- lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb
|
|
201
|
+
- lib/rex/post/meterpreter/extensions/stdapi/fs/file_stat.rb
|
|
202
|
+
- lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb
|
|
203
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/config.rb
|
|
204
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/interface.rb
|
|
205
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/route.rb
|
|
206
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/socket.rb
|
|
207
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_client_channel.rb
|
|
208
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/tcp_server_channel.rb
|
|
209
|
+
- lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/udp_channel.rb
|
|
210
|
+
- lib/rex/post/meterpreter/extensions/stdapi/stdapi.rb
|
|
211
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb
|
|
212
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/event_log.rb
|
|
213
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/event_log_subsystem/event_record.rb
|
|
214
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb
|
|
215
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb
|
|
216
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/image.rb
|
|
217
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/io.rb
|
|
218
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/memory.rb
|
|
219
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/process_subsystem/thread.rb
|
|
220
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb
|
|
221
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb
|
|
222
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb
|
|
223
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb
|
|
224
|
+
- lib/rex/post/meterpreter/extensions/stdapi/tlv.rb
|
|
225
|
+
- lib/rex/post/meterpreter/extensions/stdapi/ui.rb
|
|
226
|
+
- lib/rex/post/meterpreter/inbound_packet_handler.rb
|
|
227
|
+
- lib/rex/post/meterpreter/object_aliases.rb
|
|
228
|
+
- lib/rex/post/meterpreter/packet.rb
|
|
229
|
+
- lib/rex/post/meterpreter/packet_dispatcher.rb
|
|
230
|
+
- lib/rex/post/meterpreter/packet_parser.rb
|
|
231
|
+
- lib/rex/post/meterpreter/packet_response_waiter.rb
|
|
232
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb
|
|
233
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/espia.rb
|
|
234
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/incognito.rb
|
|
235
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/elevate.rb
|
|
236
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
|
|
237
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp.rb
|
|
238
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/priv.rb
|
|
239
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/sniffer.rb
|
|
240
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb
|
|
241
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/net.rb
|
|
242
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb
|
|
243
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/ui.rb
|
|
244
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi.rb
|
|
245
|
+
- lib/rex/post/meterpreter/ui/console/command_dispatcher.rb
|
|
246
|
+
- lib/rex/post/meterpreter/ui/console/interactive_channel.rb
|
|
247
|
+
- lib/rex/post/meterpreter/ui/console.rb
|
|
248
|
+
- lib/rex/post/meterpreter.rb
|
|
249
|
+
- lib/rex/post/permission.rb
|
|
250
|
+
- lib/rex/post/process.rb
|
|
251
|
+
- lib/rex/post/thread.rb
|
|
252
|
+
- lib/rex/post/ui.rb
|
|
253
|
+
- lib/rex/post.rb
|
|
254
|
+
- lib/rex/proto/dcerpc/client.rb
|
|
255
|
+
- lib/rex/proto/dcerpc/client.rb.ut.rb
|
|
256
|
+
- lib/rex/proto/dcerpc/exceptions.rb
|
|
257
|
+
- lib/rex/proto/dcerpc/handle.rb
|
|
258
|
+
- lib/rex/proto/dcerpc/handle.rb.ut.rb
|
|
259
|
+
- lib/rex/proto/dcerpc/ndr.rb
|
|
260
|
+
- lib/rex/proto/dcerpc/ndr.rb.ut.rb
|
|
261
|
+
- lib/rex/proto/dcerpc/packet.rb
|
|
262
|
+
- lib/rex/proto/dcerpc/packet.rb.ut.rb
|
|
263
|
+
- lib/rex/proto/dcerpc/response.rb
|
|
264
|
+
- lib/rex/proto/dcerpc/response.rb.ut.rb
|
|
265
|
+
- lib/rex/proto/dcerpc/uuid.rb
|
|
266
|
+
- lib/rex/proto/dcerpc/uuid.rb.ut.rb
|
|
267
|
+
- lib/rex/proto/dcerpc.rb
|
|
268
|
+
- lib/rex/proto/dcerpc.rb.ts.rb
|
|
269
|
+
- lib/rex/proto/drda/constants.rb
|
|
270
|
+
- lib/rex/proto/drda/constants.rb.ut.rb
|
|
271
|
+
- lib/rex/proto/drda/packet.rb
|
|
272
|
+
- lib/rex/proto/drda/packet.rb.ut.rb
|
|
273
|
+
- lib/rex/proto/drda/utils.rb
|
|
274
|
+
- lib/rex/proto/drda/utils.rb.ut.rb
|
|
275
|
+
- lib/rex/proto/drda.rb
|
|
276
|
+
- lib/rex/proto/drda.rb.ts.rb
|
|
277
|
+
- lib/rex/proto/http/client.rb
|
|
278
|
+
- lib/rex/proto/http/client.rb.ut.rb
|
|
279
|
+
- lib/rex/proto/http/handler/erb.rb
|
|
280
|
+
- lib/rex/proto/http/handler/erb.rb.ut.rb
|
|
281
|
+
- lib/rex/proto/http/handler/erb.rb.ut.rb.rhtml
|
|
282
|
+
- lib/rex/proto/http/handler/proc.rb
|
|
283
|
+
- lib/rex/proto/http/handler/proc.rb.ut.rb
|
|
284
|
+
- lib/rex/proto/http/handler.rb
|
|
285
|
+
- lib/rex/proto/http/header.rb
|
|
286
|
+
- lib/rex/proto/http/header.rb.ut.rb
|
|
287
|
+
- lib/rex/proto/http/packet.rb
|
|
288
|
+
- lib/rex/proto/http/packet.rb.ut.rb
|
|
289
|
+
- lib/rex/proto/http/request.rb
|
|
290
|
+
- lib/rex/proto/http/request.rb.ut.rb
|
|
291
|
+
- lib/rex/proto/http/response.rb
|
|
292
|
+
- lib/rex/proto/http/response.rb.ut.rb
|
|
293
|
+
- lib/rex/proto/http/server.rb
|
|
294
|
+
- lib/rex/proto/http/server.rb.ut.rb
|
|
295
|
+
- lib/rex/proto/http.rb
|
|
296
|
+
- lib/rex/proto/http.rb.ts.rb
|
|
297
|
+
- lib/rex/proto/smb/client.rb
|
|
298
|
+
- lib/rex/proto/smb/client.rb.ut.rb
|
|
299
|
+
- lib/rex/proto/smb/constants.rb
|
|
300
|
+
- lib/rex/proto/smb/constants.rb.ut.rb
|
|
301
|
+
- lib/rex/proto/smb/crypt.rb
|
|
302
|
+
- lib/rex/proto/smb/crypt.rb.ut.rb
|
|
303
|
+
- lib/rex/proto/smb/evasions.rb
|
|
304
|
+
- lib/rex/proto/smb/exceptions.rb
|
|
305
|
+
- lib/rex/proto/smb/simpleclient.rb
|
|
306
|
+
- lib/rex/proto/smb/simpleclient.rb.ut.rb
|
|
307
|
+
- lib/rex/proto/smb/utils.rb
|
|
308
|
+
- lib/rex/proto/smb/utils.rb.ut.rb
|
|
309
|
+
- lib/rex/proto/smb.rb
|
|
310
|
+
- lib/rex/proto/smb.rb.ts.rb
|
|
311
|
+
- lib/rex/proto/sunrpc/client.rb
|
|
312
|
+
- lib/rex/proto/sunrpc.rb
|
|
313
|
+
- lib/rex/proto.rb
|
|
314
|
+
- lib/rex/proto.rb.ts.rb
|
|
315
|
+
- lib/rex/script/base.rb
|
|
316
|
+
- lib/rex/script/meterpreter.rb
|
|
317
|
+
- lib/rex/script/shell.rb
|
|
318
|
+
- lib/rex/script.rb
|
|
319
|
+
- lib/rex/service.rb
|
|
320
|
+
- lib/rex/service_manager.rb
|
|
321
|
+
- lib/rex/service_manager.rb.ut.rb
|
|
322
|
+
- lib/rex/services/local_relay.rb
|
|
323
|
+
- lib/rex/socket/comm/local.rb
|
|
324
|
+
- lib/rex/socket/comm/local.rb.ut.rb
|
|
325
|
+
- lib/rex/socket/comm.rb
|
|
326
|
+
- lib/rex/socket/ip.rb
|
|
327
|
+
- lib/rex/socket/parameters.rb
|
|
328
|
+
- lib/rex/socket/parameters.rb.ut.rb
|
|
329
|
+
- lib/rex/socket/range_walker.rb
|
|
330
|
+
- lib/rex/socket/range_walker.rb.ut.rb
|
|
331
|
+
- lib/rex/socket/ssl_tcp.rb
|
|
332
|
+
- lib/rex/socket/ssl_tcp.rb.ut.rb
|
|
333
|
+
- lib/rex/socket/ssl_tcp_server.rb
|
|
334
|
+
- lib/rex/socket/ssl_tcp_server.rb.ut.rb
|
|
335
|
+
- lib/rex/socket/subnet_walker.rb
|
|
336
|
+
- lib/rex/socket/subnet_walker.rb.ut.rb
|
|
337
|
+
- lib/rex/socket/switch_board.rb
|
|
338
|
+
- lib/rex/socket/switch_board.rb.ut.rb
|
|
339
|
+
- lib/rex/socket/tcp.rb
|
|
340
|
+
- lib/rex/socket/tcp.rb.ut.rb
|
|
341
|
+
- lib/rex/socket/tcp_server.rb
|
|
342
|
+
- lib/rex/socket/tcp_server.rb.ut.rb
|
|
343
|
+
- lib/rex/socket/udp.rb
|
|
344
|
+
- lib/rex/socket/udp.rb.ut.rb
|
|
345
|
+
- lib/rex/socket.rb
|
|
346
|
+
- lib/rex/socket.rb.ut.rb
|
|
347
|
+
- lib/rex/struct2/c_struct.rb
|
|
348
|
+
- lib/rex/struct2/c_struct_template.rb
|
|
349
|
+
- lib/rex/struct2/constant.rb
|
|
350
|
+
- lib/rex/struct2/element.rb
|
|
351
|
+
- lib/rex/struct2/generic.rb
|
|
352
|
+
- lib/rex/struct2/restraint.rb
|
|
353
|
+
- lib/rex/struct2/s_string.rb
|
|
354
|
+
- lib/rex/struct2/s_struct.rb
|
|
355
|
+
- lib/rex/struct2.rb
|
|
356
|
+
- lib/rex/sync/event.rb
|
|
357
|
+
- lib/rex/sync/read_write_lock.rb
|
|
358
|
+
- lib/rex/sync/ref.rb
|
|
359
|
+
- lib/rex/sync/thread_safe.rb
|
|
360
|
+
- lib/rex/sync.rb
|
|
361
|
+
- lib/rex/test.rb
|
|
362
|
+
- lib/rex/text.rb
|
|
363
|
+
- lib/rex/text.rb.ut.rb
|
|
364
|
+
- lib/rex/time.rb
|
|
365
|
+
- lib/rex/transformer.rb
|
|
366
|
+
- lib/rex/transformer.rb.ut.rb
|
|
367
|
+
- lib/rex/ui/interactive.rb
|
|
368
|
+
- lib/rex/ui/output/none.rb
|
|
369
|
+
- lib/rex/ui/output.rb
|
|
370
|
+
- lib/rex/ui/progress_tracker.rb
|
|
371
|
+
- lib/rex/ui/subscriber.rb
|
|
372
|
+
- lib/rex/ui/text/color.rb
|
|
373
|
+
- lib/rex/ui/text/color.rb.ut.rb
|
|
374
|
+
- lib/rex/ui/text/dispatcher_shell.rb
|
|
375
|
+
- lib/rex/ui/text/input/buffer.rb
|
|
376
|
+
- lib/rex/ui/text/input/readline.rb
|
|
377
|
+
- lib/rex/ui/text/input/socket.rb
|
|
378
|
+
- lib/rex/ui/text/input/stdio.rb
|
|
379
|
+
- lib/rex/ui/text/input.rb
|
|
380
|
+
- lib/rex/ui/text/irb_shell.rb
|
|
381
|
+
- lib/rex/ui/text/output/buffer.rb
|
|
382
|
+
- lib/rex/ui/text/output/file.rb
|
|
383
|
+
- lib/rex/ui/text/output/socket.rb
|
|
384
|
+
- lib/rex/ui/text/output/stdio.rb
|
|
385
|
+
- lib/rex/ui/text/output.rb
|
|
386
|
+
- lib/rex/ui/text/progress_tracker.rb
|
|
387
|
+
- lib/rex/ui/text/progress_tracker.rb.ut.rb
|
|
388
|
+
- lib/rex/ui/text/shell.rb
|
|
389
|
+
- lib/rex/ui/text/table.rb
|
|
390
|
+
- lib/rex/ui/text/table.rb.ut.rb
|
|
391
|
+
- lib/rex/ui.rb
|
|
392
|
+
- lib/rex/zip/archive.rb
|
|
393
|
+
- lib/rex/zip/blocks.rb
|
|
394
|
+
- lib/rex/zip/entry.rb
|
|
395
|
+
- lib/rex/zip/samples/comment.rb
|
|
396
|
+
- lib/rex/zip/samples/mkwar.rb
|
|
397
|
+
- lib/rex/zip/samples/mkzip.rb
|
|
398
|
+
- lib/rex/zip/samples/recursive.rb
|
|
399
|
+
- lib/rex/zip.rb
|
|
400
|
+
- lib/rex.rb
|
|
401
|
+
- lib/rex.rb.ts.rb
|
|
402
|
+
has_rdoc: true
|
|
403
|
+
homepage: http://www.metasploit.com/
|
|
404
|
+
licenses: []
|
|
405
|
+
|
|
406
|
+
post_install_message:
|
|
407
|
+
rdoc_options: []
|
|
408
|
+
|
|
409
|
+
require_paths:
|
|
410
|
+
- lib
|
|
411
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
412
|
+
requirements:
|
|
413
|
+
- - ">="
|
|
414
|
+
- !ruby/object:Gem::Version
|
|
415
|
+
segments:
|
|
416
|
+
- 1
|
|
417
|
+
- 8
|
|
418
|
+
- 7
|
|
419
|
+
version: 1.8.7
|
|
420
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
421
|
+
requirements:
|
|
422
|
+
- - ">="
|
|
423
|
+
- !ruby/object:Gem::Version
|
|
424
|
+
segments:
|
|
425
|
+
- 0
|
|
426
|
+
version: "0"
|
|
427
|
+
requirements: []
|
|
428
|
+
|
|
429
|
+
rubyforge_project:
|
|
430
|
+
rubygems_version: 1.3.6
|
|
431
|
+
signing_key:
|
|
432
|
+
specification_version: 3
|
|
433
|
+
summary: Ruby Exploitation library
|
|
434
|
+
test_files: []
|
|
435
|
+
|