Advertisement
Ribang

Understanding Metasploit Framework For Dummies : Doc III

Nov 19th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. Understanding Metasploit Framework For Dummies : Doc III
  2.  
  3.  
  4. Dalam Dokumentasi III ini berisi :
  5. “Dokumentasi Library Rex” dan “Membuat custom exploiting tanpa Msf dari Library Rex”
  6. Understanding I :
  7. Library-Rex Doc
  8.  
  9. Library-Rex adalah Library yang digunakan oleh Msf Framework, karena sudah ada di-index Rubygems, Rex di Re-Package alias: dipisah dari frameworknya agar bisa bekerja secara independent dan Free To Use oleh semua pengguna FOSS (Free Open-Source Software).
  10. Library-Rex Doc bisa ditemukan disini : http://www.rubydoc.info/gems/rex/2....
  11. Library-Rex Doc Re-Package, menggunakan Socket yang hampir sama dengan Msf Staging hanya berbeda dalam Integrasi karena Library-Rex independent.
  12.  
  13. Mechanism Payloads Rex :
  14. 1. Meterpreter :
  15. Meterpreter yang digunakan oleh Msf :: Rex
  16. 2. Win32 :: Kernel
  17. Stub kernell.dll / netapi32.dll windows yang akan di sys_callhook pada CmdStagersBase Class
  18. Understanding II :
  19. Membuat Custom Exploiting tanpa Msf dari Library-rex
  20. Requirements (Hal yang dibutuhkan) :
  21. -Pemrograman (Python / gcc / Ruby )
  22. -Socketing
  23.  
  24. Membuat Custom Payload tidak mudah. disisi lain kita membutuhkan Assembly karena itu saya hanya bisa memberikan Pemahaman Minim Sementara.
  25. #encoding: ASCII
  26. require 'rex'
  27. class Nama < Rex def initialize(info={}) super(info, 'Name' => 'TODO Name Custom', 'Description' => %q{ 'TODO Deskripsi' }, 'Author' => [ 'TODO', 'Some TODO Author', ], 'License' => MSF_LICENSE, 'More TODO Array here' 'More TODO Options' ), #More-Todo Here end
  28. def exploit
  29. async #not_real_async {
  30. host => 'TODO', #Target
  31. port => 'TODO', #Port
  32. }
  33. Serv = TCP::Server(localhost, localport) do |a|
  34. a.accept(async)
  35. Cmd::Stagers::Initialize(cmd_generate, encoding_payloads(a))
  36. end
  37. #TODO ShellCode
  38. end
  39. end
  40. #kalo_di_coba_pasti_error
  41.  
  42. #ini_hanya_perumpamaan_syntax
  43. [License]
  44.  
  45. Copyright (C) 2017 Dwi Mulia
  46.  
  47. This program is free software: you can redistribute it and/or modify
  48. it under the terms of the GNU General Public License as published by
  49. the Free Software Foundation, either version 3 of the License, or
  50. (at your option) any later version.
  51.  
  52. This program is distributed in the hope that it will be useful,
  53. but WITHOUT ANY WARRANTY; without even the implied warranty of
  54. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  55. GNU General Public License for more details.
  56.  
  57. You should have received a copy of the GNU General Public License
  58. along with this program. If not, see <https://www.gnu.org/licenses/>.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement