|
Revision 1507, 503 bytes
(checked in by kindlund, 9 months ago)
|
Updated to support source_type and source_name.
|
- Property svn:executable set to
*
- Property svn:keywords set to
Id "$file"
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
use strict; |
|---|
| 6 |
use warnings; |
|---|
| 7 |
|
|---|
| 8 |
use Data::Dumper; |
|---|
| 9 |
use HoneyClient::Manager::Database; |
|---|
| 10 |
use HoneyClient::Util::Config qw(getVar); |
|---|
| 11 |
|
|---|
| 12 |
my $urls = { |
|---|
| 13 |
'source_type' => 'command_line', |
|---|
| 14 |
'source_name' => getVar(name => "organization", namespace => "HoneyClient"), |
|---|
| 15 |
'http://www.google.com/' => 1, |
|---|
| 16 |
'http://www.mitre.org/' => 1, |
|---|
| 17 |
}; |
|---|
| 18 |
|
|---|
| 19 |
my $output = HoneyClient::Manager::Database::insert_queue_urls($urls); |
|---|
| 20 |
print Dumper($output) . " URL(s) inserted.\n"; |
|---|