Skip to content

Instantly share code, notes, and snippets.

@caleBot
Created April 23, 2018 16:46
Show Gist options
  • Save caleBot/ed31a416d4cb70ed837004d5878d56bc to your computer and use it in GitHub Desktop.
Save caleBot/ed31a416d4cb70ed837004d5878d56bc to your computer and use it in GitHub Desktop.
msf create_credential() help
PROBLEM:
not all fields are populating in the creds db
Running this code:
create_credential(
origin_type: :service,
address: '192.168.1.100',
port: 445,
service_name: 'smb',
protocol: 'tcp',
module_fullname: 'auxiliary/scanner/smb/smb_login',
workspace_id: myworkspace.id,
private_data: 'password1',
private_type: :password,
username: 'Administrator'
)
Seeing this result in the creds db:
why aren't: host, origin, service popluating??
> creds
Credentials
===========
host origin service public private realm private_type
---- ------ ------- ------ ------- ----- ------------
Administrator password1 Password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment