Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auxiliary module to HP LaserJet Printer SNMP Enumeration #2919

Merged
merged 2 commits into from Mar 28, 2014
Merged

Auxiliary module to HP LaserJet Printer SNMP Enumeration #2919

merged 2 commits into from Mar 28, 2014

Conversation

mcantoni
Copy link
Contributor

This module allows enumeration of files previously printed via SNMP request. It provides details as filename, client, timestamp and username informations. The default community used is "public".
(old request: http://dev.metasploit.com/redmine/issues/6864).

msf auxiliary(snmp_enum_hp_laserjet) > set RHOSTS 1.2.3.4
RHOSTS => 1.2.3.4
msf auxiliary(snmp_enum_hp_laserjet) > run

[+] IP address  : 1.2.3.4
[+] Hostname    : HPPRINTERTEST
[+] Description : HP ETHERNET MULTI-ENVIRONMENT,ROM none,JETDIRECT,JD102,EEPROM V.34.63,CIDATE 02/26/2007
[+]
[+] File name   : Secret.pdf
[+] Username    : Jack
[+] Client      : HOSTNAME1
[+] Timestamp   : 20140106170130
[+]
[+] File name   : Test.doc
[+] Username    : Mark
[+] Client      : HOSTNAME2
[+] Timestamp   : 20140106170246
...
..
.

@wvu
Copy link
Contributor

wvu commented Jan 25, 2014

Hey, @mcantoni. Please see #2920. Sorry I forgot! :(

@mcantoni
Copy link
Contributor Author

Ok, thank you. Evaluate to add also this "new" module. It doesn't use PJL but SNMP to retrieve the history of printed files. I hope you have a device to do some test (HP laserjet printer with SNMP public). It's free to be modified. I hope could be useful to others.

@wvu
Copy link
Contributor

wvu commented Feb 4, 2014

Testing!

def initialize(info = {})
super(update_info(info,
'Name' => 'HP LaserJet Printer SNMP Enumeration',
'Description' => 'This module allows enumeration of files previously printed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use %q{}.

@wvu
Copy link
Contributor

wvu commented Feb 20, 2014

I can see the document names in my pcap, but I'm not seeing them in my output. I'll have to look into this later.

@mcantoni
Copy link
Contributor Author

I had the opportunity to positively verify the script with these devices: HP LaserJet 3005, HP LaserJet 3505, HP LaserJet 3800, HP LaserJet 4015, HP LaserJet 4250. (Currently I can not provide a pcap.)

@wvu wvu self-assigned this Mar 19, 2014
@jvazquez-r7 jvazquez-r7 merged commit 7c860b9 into rapid7:master Mar 28, 2014
@wvu
Copy link
Contributor

wvu commented Mar 28, 2014

This has _NOT_ been merged yet.

@wvu
Copy link
Contributor

wvu commented Mar 28, 2014

See #2996 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants