Tcpdum example 
/usr/sbin/tcpdump -nvX 'tcp and port 80 and dst 172.28.182.70'

[ add comment ] ( 11 views )   |  [ 0 trackbacks ]   |  permalink
Zde si můžete vyhledat zveřejněné certifikáty vydané I.CA.  
http://s.ica.cz/cgi-bin/crt_spub.cgi

[ add comment ] ( 19 views )   |  [ 0 trackbacks ]   |  permalink
Alternative news unsorted 
http://www.truthdig.com/
http://www.blisty.cz/
http://www.godlikeproductions.com/
http://www.examiner.com
http://cfp2.miroslavsuja.cz/
http://www.jetotak.sk
http://www.noveslovo.sk


[ add comment ] ( 19 views )   |  [ 0 trackbacks ]   |  permalink
Python: argv and argc 
#!/usr/bin/python

import sys

def main():
'''Why does the sys module have "argv" but no "argc"?

http://www.python.org/search/hypermail/ ... /1034.html

If there was a sys.argc, then you would have to remember to
update its value whenever you changed sys.argv.

While this may not be common in C, it's not unusual in Python.
'''

argc = len(sys.argv)
print "number of arguments is: ", argc

if __name__ == '__main__':
main()


[ add comment ] ( 21 views )   |  [ 0 trackbacks ]   |  permalink
Python: Simple MD5 
>>> import md5
>>> foo = md5.new("hohoho!")
>>> foo.hexdigest()
'14874050f4928b54f58b6d292a681f00'


[ add comment ] ( 10 views )   |  [ 0 trackbacks ]   |  permalink
LightSquid - lite and fast log analizer for squid proxy 
Allow cgi scripts, then follow the lightsquid documentation.

http://lightsquid.sourceforge.net/

/etc/httpd/conf.d/lightsquid.conf

<Directory "/var/www/html/lightsquid">
DirectoryIndex index.cgi
Options +ExecCGI
AddHandler cgi-script .cgi
AllowOverride All
</Directory>


/etc/httpd/conf/httpd.conf

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi




[ add comment ] ( 10 views )   |  [ 0 trackbacks ]   |  permalink
cpio 
create cpio archive

find . | cpio -o > archive


extract cpio archive

cpio -id < archive




[ add comment ] ( 9 views )   |  [ 0 trackbacks ]   |  permalink
Photographer: Mikael Leijon 
http://www.usefilm.com/image/1602465.html

[ 2 comments ] ( 32 views )   |  [ 0 trackbacks ]   |  permalink
Slunk: get the indexing information 
https://localhost:8000/en-US/app/search/index_status


[ add comment ] ( 14 views )   |  [ 0 trackbacks ]   |  permalink
Splunk: forwarder and routing specific to sourcetypes 
Splunk regular for extracting fields in format variable='value'

(?i)'(?P<FIELDNAME>[^']+)' 


Set the Splunk server to receive compressed data from forwarder on port 50000, file /opt/splunk/etc/system/local/inputs.conf

[default]
host = myserver.mycompany.com

[splunktcp://50000]
compressed = true


Configure Splunk forwarder for routing. In example, the forwarder does different routing for each of two diffferent sourcetypes. First, we define the sources to collect ( /opt/splunk/etc/system/local/inputs.conf ):

[monitor:///var/log/clc/reports/unix/level3/*]
disabled = false
index = first_index
sourcetype = first_sourcetype

[monitor:///var/log/clc/*/notsocoolevents/*]
disabled = false
index = second_index
sourcetype = second_sourcetype



The props.conf in the same directory defines the routing paths specific to sourcetypes:


[first_sourcetype]
TRANSFORMS-routing = routeLocal

[second_sourcetype]
TRANSFORMS-routing = routeOutside


The transforms.conf could be used to filter the events before the routing and defines the destinations (outputs):


[routeLocal]
REGEX=.*
DEST_KEY=_TCP_ROUTING
FORMAT=outsideGroup

[routeOutside]
REGEX=.*
DEST_KEY=_TCP_ROUTING
FORMAT=localGroup


outputs.conf defines the servers we route to:


[tcpout:localGroup]
server = server1.mycompany.com:50000
disabled = false
compressed = true

[tcpout:outsideGroup]
server = server2.othercompany.com:60000
disabled = false
compressed = true



[ add comment ] ( 8 views )   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | Next> Last>>