Comment SPAM gone wrong…

He-he-he, this makes me laugh….

Can not say that I can {argu|disagre}e with this post {at all |in the slightest|in any way}

The above is a recent commit submitted to my blog. The SPAM-Numpty obviously can’t work his software properly… {argu|disagre}e is supposed to perform either/or substitution to randomize comments and make detection harder but if that fails it’s very obvious – lol !!!

VBS Script to clean up old files when folder is x Mb

Security kit creates logs, aparently some people use something called windows server instead of linux as their file & log servers :)

Recently I had a requirement whereby if a folder was larger than 30Gb (approx 95% of a partition) then the oldest files should be deleted, usually bash would be the answer but in this instance I needed to use a visual basic script.

This is what I came up with, it’s not neat (cause I don’t know vbs) but it works, if you want to use it find and replace “D:\Files” with your directory then find & replace “35000” with your required size in Mb (35000Mb is approx 35Gb) , save the attached script .txt file (vbs_script_disk_clean_up.txt) as script.vbs, then use task scheduler to run everyday, job done!

links for 2009-09-07

Link

Checkpoint Nokia, How to enable SSH thru the default filter.

I had lost this bookmark, saved here so I don’t loose it again :)

  • Solution Title: How do I control / change access using defaultfilter and initialpolicy?
  • Solution ID: sk41117

There are various options given in the article, this…

ipso[nick]# cp -p $FWDIR/conf/initial_module.pf $FWDIR/conf/initial_module.pf.OLD
ipso[nick]# cp $FWDIR/lib/defaultfilter.ipso $FWDIR/conf/initial_module.pf
ipso[nick]# comp_init_policy -g
initial_module:
Compiled OK.
ipso[nick]#

… will do in most cases!