Airpwn Match Pattern...Help!?
I've always had trouble understand Perl pattern matches and I guess Airpwn uses the same sort of pattern matching string. I want to come up with a pattern similar to the hijack_site or greet_html examples I guess. I want to target a specific site though like myspace.com or youtube.com so I can put a header at the top saying "You use Youtube entirely too much!" to all the people on my network. I just want to inject when GET|POST to youtube.com specifically. Or how to modify the match or ignore patterns from either the hijack_site or greet_html examples with Airpwn 1.3?
here's the conf for site_hijack:
ignore (^GET [^ ?]+\.(?i:jpg|jpeg|gif|png|ico|css)|(?i:host: .*google.com))
I'm not even sure what the ignore pattern means :S I'm guessing it's ignoring any GET requests with jpg etc in it or GET requests with host is anything ending in google.com? What I wanted to put a header at the top of or replace google.com entirely. Any suggestions where to start?
I also would like to know how to do this, i am only able to ignore sites, not accept certain sites.