Regex for multiple indicators in a single html line.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Regex for multiple indicators in a single html line.

L0 Member

Hi,

 

TI source-:

http://norse.malware.com.br/cgi/submit?action=stats&s=domains

 

This TI gives two indicators in a single html tag as given below

 

<tr><td><font size=2>gashsteel.co.za</font>&nbsp;&nbsp;</td><td><font size=2>gasienica.etatry.com</font>&nbsp;&nbsp;</td></tr>

 

My config file for the TI-:

 

age_out:
default: null
interval: 257
sudden_death: true
attributes:
confidence: 100
direction: inbound
share_level: green
type: URL
ignore_regex: ^(?!<tr><td>)
indicator:
regex: <tr><td><font size=2>([^<]+)</font>&nbsp;&nbsp;</td><td><font size=2>([^<]+)</font>&nbsp;&nbsp;</td></tr>
transform: \1 \2
interval: 619
source_name: norse.malware
url: http://norse.malware.com.br/cgi/submit?action=stats&s=domains

 

 

The output of this config is -:           indicator <space> another indicator

I know its because of the transform key in config file 

What changes do i have to make in the config file to get each indicator in a newline.

 

0 REPLIES 0
  • 2087 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!