Experience with Snort-1.8.0
Author Gnicky URL: http://blog.9cbs.net/loconfuse
Recently written things are more like a record process, this is my thinking habit, maybe you are not like this -) In a sense, I originally wanted to build a SPO_XML.out's output plugin by Snort-1.8, then Let it work in Snort 2.0 (the compiled part is given to 1.8, only when the keyword registration is registered, this should be used in 2.0 using XML Output Plugin, some adventive ideas)
The result is tossing, according to the candle, the display, the No.8 version of the output plug-in is made, and it is not necessary to come. If you want to come, you can try XML output in this directory. I always worry about this version 1.8 version, the upgrade of the version inevitably solves many bugs, high versions are generally stable and safe than the low version. However, for Snort, the high version is better than the low version, maybe it has also added some characteristics, but I haven't learned it yet, I haven't learned it.
Use XML Output Plugin:
Modify the rule file, use RedALERT, use XML plug-in in RedALERT: Output XML; log, file = / var / log / snortxml, run, go to var / log to discover a bunch of XML files, how actually does not follow A focus of an XML file? Observing documents found that only the format of the XML file XML Version ****>
The name rules of the XML log file are like this: file name defined in confed Date @ Number (self-growth). Since a Linux system installed 3, 4 different versions of Snort, they were also somewhat dizzy, and the XML logs yesterday were generated by Snort 2.2.0, maybe the XML Plugin implantation 2.2.0 at that time, but Now 2.2 is still can't stand up, that 2.2.0 is because certain modifications, actually a plugin of Detection, Unknown Preprocessor "HTTP Inspect", Unknown Preprocessor "HTTP Inspect Server".
Solving data Unable to enter XML issues:
If there is no data in your XML log file, you can try it, according to the content of the XML file, it should be the storage path of the DTD format file, so the SNML file from the CONTRIB Copy to the main directory, the result is in / var / log Discover a 2.5M file J
Next, the XML file DTD and Content are simply analyzed. First, through the part of the part intercepted in XML log, learn: (some things, I am also guess, I hope to get everyone's corrective)
XML Version = "1.0" encoding = "utf-8"?>
.
sensor>
tcphdr>
iphdr>
packet>
event>
sensor>
iphdr>
packet>
event>
file>
Look at the description in DTD:
It will understand the current structure, and Reference * is not here. Why is it *, don't understand, but find a point about the deferne file, sp_reference has been deleted in subsequent versions. This is the same as the analysis of the disappearance of the file. It can be seen that the implicit problem is implicitly handled when the Snort is designed.
I want to care about the analyzer, I should care about Data Element.
You can choose to see Data content format, such as the HEX, Base64, the most time space ASCII, just nothing can be easily read, because of the hierarchical problem of data acquisition, this and the network ISO model /