Comments (5)
Original comment by [email protected]
on 27 Oct 2010 at 8:08
- Changed state: Accepted
from pulledpork.
Original comment by [email protected]
on 29 Oct 2010 at 11:48
from pulledpork.
This two vars should be added to the code base:
***AT begining of file****
my $isVRT=0;
my $isET=0;
****CODE Change that sets sostub to undef*****
if ( !$NoDownload ) {
foreach (@base_url) {
my ( $base_url, $rule_file, $oinkcode ) = split( /\|/, $_ );
croak
"You need to define an oinkcode, please review the rule_url section of the
pulledpork config file!\n"
unless $oinkcode;
croak(
"please define the rule_url correctly in the pulledpork.conf\n")
unless defined $base_url;
croak(
"please define the rule_url correctly in the pulledpork.conf\n")
unless defined $rule_file;
if ( $base_url =~ /snort\.org/i ) {
$isVRT = 1;
unless ( $rule_file =~ /snortrules-snapshot-\d{4}\.tar\.gz/ ) {
croak(
"The specified Snort binary does not exist!\nPlease correct the value or
specify the FULL",
" rules tarball name in the pulledpork.conf!\n"
) unless $Snort;
my $Snortv = $Snort;
$Snortv =~ s/\.//g;
$rule_file = "snortrules-snapshot-$Snortv.tar.gz";
}
}
elsif ( $base_url =~ /emergingthreats.net/ ) {
$isET = 1;
my $Snortv = $Snort;
$Snortv =~ s/(?<=\d\.\d\.\d)\.\d//;
$base_url .= "$oinkcode/snort-$Snortv/";
}
$Hash = 1 unless $base_url =~ /(emergingthreats|snort.org)/;
if ( !$Hash ) {
$md5 = md5file( $oinkcode, $rule_file, $temp_path, $base_url );
}
# and now lets determine the md5 of the last saved rules file if it exists
if ( -f "$temp_path" . "$rule_file" && !$Hash ) {
$rule_digest = md5sum( $rule_file, $temp_path );
}
else { # the file didn't exsist so lets get it
rulefetch( $oinkcode, $rule_file, $temp_path, $base_url );
if ( -f "$temp_path" . "$rule_file" && !$Hash ) {
$rule_digest = md5sum( $rule_file, $temp_path );
}
}
# compare the online current md5 against against the md5 of the rules file on
system
compare_md5(
$oinkcode, $rule_file, $temp_path, $Hash,
$base_url, $md5, $rule_digest, $Distro,
$arch, $Snort, $Sorules, $ignore_files,
$docs
);
}
}
undef $Sostubs if ( $isET && !$isVRT );
Original comment by [email protected]
on 5 Nov 2010 at 4:44
from pulledpork.
Fixed - rev#174
Original comment by [email protected]
on 8 Nov 2010 at 4:59
- Changed state: Fixed
from pulledpork.
You might consider a new release to to get this fix pushed out to users. VRT +
ET-Open is still a fairly common config and I burned some time troubleshooting
this problem before finding this bug and realizing that I needed to upgrade to
the latest trunk.
Original comment by [email protected]
on 16 Dec 2010 at 11:35
from pulledpork.
Related Issues (20)
- Unable to pull down emergingthreatspro rules list HOT 8
- Unable to download Suricata rules HOT 2
- Version 8 - Error: does not exist, please create this directory HOT 15
- Barnyard2 hangs on the sid file created with pulledpork using: sid_msg_version=2 HOT 3
- snort.rules not created HOT 4
- Windows path issue when running pulledpork
- Modifysid doesn't modify rules HOT 5
- 422 Unprocessable Entity HOT 6
- ERROR: can't set --dump-dynamic-rules /tmp/tha_rules/so_rules/ and no rules are being imported. HOT 10
- Unknown regexp modifier HOT 5
- Unable to process shared object rules for a previous version of snort3 HOT 2
- Snort3 - 422 Unprocessable Entity when trying to download rules HOT 3
- An error occurred: ERROR: /etc/snort//etc/snort/rules/app-detect.rules(0) Unable to open rules file "/etc/snort//etc/snort/rules/app-detect.rules": No such file or directory. HOT 1
- This is happening in Windows with latest release
- a lots of errors HOT 1
- Issuing reputation socket reload command - (Error) ?
- few of rules downloaded HOT 3
- IP Blocklists are not processed when -n flag is set
- Dolibarr v17.02 - Receipt Printer Issue HOT 2
- 422 Unprocessable Entity [ 422 ], Using the oinkcode provided by snort? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulledpork.