Grasping the important web functions

The important web methods in the context of web applications are located in the client.rb library file under /lib/msf/core/exploit/http, which further links to client.rb and the client_request.rb file under /lib/rex/proto/http, where core variables and methods related to GET and POST requests are located.

The following methods from the /lib/msf/core/exploit/http/client.rb library file can be used to create HTTP requests:

The send_request_raw and send_request_cgi methods are relevant when making a HTTP-based request, but in a different context.

We have send_request_cgi, which offers much more flexibility ...

Get Mastering Metasploit - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.