Skip to content
KitploitKITPLOIT
أدواتالمدونة
إرسال
أدواتالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

··الخلاصات·اتصال·الخصوصية·© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
pulledpork — Pulled Pork لإدارة قواعد Snort وSuricata (من Google code) | Kitploit
أدوات/GitHubGitHub/shirkdog/pulledpork
ماسحات الثغرات الأمنيةموجزات ومجمعات التهديداتتدقيق التكوينأمن الشبكاتكشف التسلل
GitHubshirkdog/pulledpork

pulledpork

Pulled Pork لإدارة قواعد Snort وSuricata (من Google code)

عرض المستودع
442132منذ 5 سنواتتمت المراجعة من قبل Kitploit

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →
مشاركة

PulledPork

PulledPork لإدارة قواعد Snort و Suricata (من Google code)

تجدنا على Libera.Chat (IRC) #pulledpork

حقوق النشر (C) 2009-2021 JJ Cummings, Michael Shirk وفريق PulledPork!

نشكرك على اختيار استخدام PulledPork! يقدم هذا الملف بعض الإرشادات الأساسية حول استخدام PulledPork. يرجى التأكد من قراءة هذا الملف بدقة حتى لا تغفل عن شيء!

الميزات والإمكانيات

  • تنزيل آلي، تحليل، تعديل الحالة وتعديل القواعد لجميع مجموعات قواعد snort الخاصة بك.
  • التحقق من المجموع الاختباري لجميع تنزيلات القواعد الرئيسية
  • إنشاء تلقائي لملف sid-msg.map المحدّث
  • القدرة على تضمين ملف local.rules في ملف sid-msg.map
  • القدرة على سحب أرشيفات القواعد من عناوين URL مخصصة
  • دعم كامل للـ Shared Object
  • دعم كامل لقوائم IP Reputation
  • القدرة على تنزيل مجموعات قواعد متعددة ومختلفة في وقت واحد
  • الحفاظ على سجل تغييرات دقيق
  • القدرة على إرسال إشارة HUP للعمليات بعد تنزيل القواعد ومعالجتها
  • المساعدة في ضبط مجموعات القواعد
  • إخراج مفصّل حتى تعرف بالضبط ما يحدث
  • اعتماديات قليلة على وحدات Perl
  • دعم لمجموعات قواعد Suricata و ETOpen/ETPro
  • نكهة مدخنة لذيذة طوال اللحم! (يقصد به PulledPork)

مرجع استخدام الأوامر

root@kitploit:~
Usage: pulledpork.pl [-dEgklnRTPVvv? -help] -c <config filename> -o <rule output path>
 -O <oinkcode> -s <so_rule output directory> -D <Distro> -S <SnortVer>
 -p <path to your snort binary> -C <path to your snort.conf> -t <sostub output path>
 -h <changelog path> -H <signal_name> -I (security|connectivity|balanced) -i <path to disablesid.conf>
 -b <path to dropsid.conf> -e <path to enablesid.conf> -M <path to modifysid.conf>
 -r <path to docs folder> -K <directory for separate rules files>

 Options:
 -help/? Print this help info.
 -b Where the dropsid config file lives.
 -C Path to your snort.conf
 -c Where the pulledpork config file lives.
 -d Do not verify signature of rules tarball, i.e. downloading fron non VRT or ET locations.
 -D What Distro are you running on, for the so_rules
    For latest supported options see http://www.snort.org/snort-rules/shared-object-rules
    Valid Distro Types:
	Alpine-3-10
	Centos-6, Centos-7, Centos-8
	Debian-8, Debian-9, Debian-10
	FC-27, FC-30
	FreeBSD-11, FreeBSD-12
	OpenBSD-6-2, OpenBSD-6-4, OpenBSD-6-5 
	OpenSUSE-15-0, OpenSUS-15-1, OpenSUSE-42-3
	RHEL-6, RHEL-7, RHEL-8
	Slackware-14-2
	Ubuntu-14-4, Ubuntu-16-4, Ubuntu-17-10, Ubuntu-18-4
 -e Where the enablesid config file lives.
 -E Write ONLY the enabled rules to the output files.
 -g grabonly (download tarball rule file(s) and do NOT process)
 -h path to the sid_changelog if you want to keep one?
 -H Send signal_name to the pids listed in the config file (SIGHUP or SIGUSR2)
 -I Specify a base ruleset( -I security,connectivity,or balanced, see README.RULESET)
 -i Where the disablesid config file lives.
 -k Keep the rules in separate files (using same file names as found when reading)
 -K Where (what directory) do you want me to put the separate rules files?
 -l Log Important Info to Syslog (Errors, Successful run etc, all items logged as WARN or higher)
 -L Where do you want me to read your local.rules for inclusion in sid-msg.map
 -m where do you want me to put the sid-msg.map file?
 -M where the modifysid config file lives.
 -n Do everything other than download of new files (disablesid, etc)
 -o Where do you want me to put generic rules file?
 -O Define the oinkcode on the command line (necessary for some users)
 -p Path to your Snort binary
 -P Process rules even if no new rules were downloaded
 -R When processing enablesid, return the rules to their ORIGINAL state
 -r Where do you want me to put the reference docs (xxxx.txt)
 -S What version of snort are you using (2.8.6 or 2.9.0) are valid values
 -s Where do you want me to put the so_rules?
 -T Process text based rules files only, i.e. DO NOT process so_rules
 -u Where do you want me to pull the rules tarball from
    ** E.g., ET, Snort.org. See pulledpork config rule_url option for value ideas
 -V Print Version and exit
 -v Verbose mode, you know.. for troubleshooting and such nonsense.
 -vv EXTRA Verbose mode, you know.. for in-depth troubleshooting and other such nonsense.
 -w Skip the SSL verification (if there are issues pulling down rule files)
 -W Where you want to work around the issue where some implementations of LWP do not work with pulledpork's proxy configuration.

أمثلة استخدام أساسية

مثال بسيط لاستخدام PulledPork هو تحديد جميع توجيهات التهيئة داخل ملف PulledPork.conf. بالتحديد للوظائف الأساسية، أي بدون معالجة قواعد Shared Object، يجب تحديد كحد أدنى قيم rule_file و oinkcode و temp_path و tar_path و rule_path. فيما يلي بعض الأمثلة على ذلك.

root@kitploit:~
./pulledpork.pl -o /usr/local/etc/snort/rules/ -O 12345667778523452344234234 \
  -u http://www.snort.org/reg-rules/snortrules-snapshot-2973.tar.gz \
  -i disablesid.conf -T -H

ما سبق سيجلب أرشيف snortrules-snapshot-2973.tar.gz من snort.org باستخدام oinkcode المحدد 12345667778523452344234234 ويضع ملفات القواعد من هذا الأرشيف في مسار الإخراج /usr/local/etc/snort/rules/ بينما يخبر الخيار -i pulledpork بمكان وجود ملف disablesid.conf، والخيار -T يخبر pulledpork بعدم معالجة أي قواعد Shared Object، والخيار -H يخبر pulledpork بإرسال إشارة Hangup إلى PID الخاص بـ snort الذي تم تعريفه في ملف pulledpork.conf.

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -i disablesid.conf -T -H

مشابه للمثال الأول ولكن جميع الخيارات محددة في ملف pulledpork.conf (باستثناء disablesid و -H)...

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -i disablesid.conf \
  -m /usr/local/etc/snort/sid-msg.map -Hn

ما سبق سيقرأ ببساطة ملف disablesid ويعطل كما هو محدد، ثم يرسل إشارة Hangup بعد إنشاء ملف sid-msg.map في الموقع المحدد دون تنزيل أي شيء. مفيد جداً عند الضبط / إجراء التغييرات إلخ..

المثال التالي، snort inline مع قواعد نريد إسقاطها وتعطيلها، ثم إرسال إشارة HUP للخدمات بعد إنشاء ملف sid-msg.map وكتابة معلومات التغيير إلى sid_changes.log!

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -i disablesid.conf -b dropsid.conf \
  -m /usr/local/etc/snort/sid-msg.map -h /var/log/sid_changes.log -H

المثال التالي، نفس السابق ولكن مع تحديد أننا نريد تشغيل مجموعة القواعد الافتراضية "security" وأننا نريد تمكين القواعد المحددة في enablesid.conf.

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -i disablesid.conf -b dropsid.conf \
  -e enablesid.conf -m /usr/local/etc/snort/sid-msg.map \
  -h /var/log/sid_changes.log -I security -H

المثال التالي، نفس السابق ولكن مع تحديد أننا نريد -K (الاحتفاظ) بأسماء الأرشيف الأصلية وكتابتها إلى /usr/local/etc/snort/rules/

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -i disablesid.conf -b dropsid.conf \
  -e enablesid.conf -m /usr/local/etc/snort/sid-msg.map \
  -h /var/log/sid_changes.log -I security -H -K /usr/local/etc/snort/rules/

بالنسبة لمستخدمي Suricata، نفس الخطوات ضرورية لمكان وجود ملفات التثبيت، لكن كل ما يحتاجه pulledpork لمعالجة ملفات القواعد هو وضع العلم -S على suricata-3.1.3 أو أي إصدار من suricata تستخدمه

root@kitploit:~
./pulledpork.pl -c pulledpork.conf -S suricata-3.1.3

يجب أن يعمل Pulledpork مع قواعد Suricata و ET/ETPro. ومع ذلك، لا يوجد دعم لقواعد Talos لتشغيلها على Suricata.

قسم الملاحظات الخاصة

يرجى ملاحظة أن pulledpork يقوم بتعديل القواعد (تمكين، إسقاط، تعطيل، تعديل) بهذا الترتيب بشكل افتراضي..

  1. enable
  2. drop
  3. disable

هذا يعني أن قواعد التعطيل ستكون لها الأولوية دائماً.. وبالتالي إذا حددت نفس gid:sid في ملفات تمكين وتعطيل، فسيتم تعطيل هذا sid.. ضع ذلك في الاعتبار للنطاقات أيضاً! ومع ذلك، يمكنك تحديد ترتيب مختلف باستخدام الكلمة المفتاحية state_order في ملف الإعدادات الرئيسي.

ربما سأضيف المزيد من المعلومات لاحقاً، --help أو --? سيعرض جميع خيارات وقت التشغيل وملف pulledpork.conf مشروح بشكل جيد.. لذا إذا لم تتمكن من فهمه.. حاول بجدية أكبر! وبمجرد أن تفهمه، فلا تتردد في المساهمة بمزيد من ملفات readme / help foo.. شكراً!

كملاحظة جانبية، أود أن أحيي صديقي Bruce لمساعدته في تسمية PulledPork! "آمل أن يوقفه ذلك عن الكلام ;-)"

تنزيل الأداة