• Blocklist2ACL 2.0 Released!!

    **Updated 2.0.1**

    Hey all, due to the success of the Blocklist2ACL.hta script from this previous post, I decided to port the code over from VBscript to Java. In effort to make the program more stable, cross-platform comparable, and future proof. I’ve received a few comments and PMs from users explaining that the Internet Explorer requirement was giving them issues. This is true, the old script relied heavily on Internet Explorer and what version you were running. Well enough of that, as I was able to port the code over to Java (no, not JavaScript), which has it’s own runtime objects and classes that I was able to utilize.

    Here are some screenshots:

    Blocklist2 ACLBlocklist2 ACL log Blocklist2 ACL wildcard

    JRE1.7+, grab it here.

    md5sum = 6b08f7483fa753f13363b6d0342b379e
    SHA1      =  370170c92868ff1b81ac038f85ba22ad929de571
    SHA-256 = 6e9ebd0df885ad597512ea2f8e33be38b7af926710547cc3431bcddd1a8b64b5

  • Showing Cowsay and Fortune in every Terminal

    I was wondering today…I used to see this screenshot of a ASCII cow in a terminal that was giving some sort of advice or fortune. After a little googling I found the application fortune which shows you a simple fortune when run from a terminal on linux/unix. I also found the application cowsay which is the app that shows the ASCII art of animals with a comic balloon. By default a cow, however there are many others. I chose tux.

    $ fortune | cowsay
    / Don't go around saying the world owes 
    | you a living. The world owes you      |
    | nothing. It was here first.           |
    |                                       |
     -- Mark Twain                         /
                (__)       )/
                    ||----w |
                    ||     ||

    Why the pipe? because fortune echos a string, and cowsay reads in a string.

    Now the problem was I had to type the command every single time. To solve this we turn to your users .bashrc file. Located ~/.bashrc for Ubuntu users. Edit the file with your favorite text editor and add the following lines at the bottom.

    if [ -x /usr/games/cowsay -a -x /usr/games/fortune ]; then
        fortune | cowsay

    (if statement checks to make sure both cowsay and fortune are installed)
    Now, everytime you open a terminal or command prompt you’ll have a cool animal telling you a fortune!

    Cool Android app here. This will send SMS text messages from your phone as cowsay!!

  • Sendmail via VBscript

    This is a fun one, you can find numerous examples of this script all over the internet. Figured I’d share…

    Set objEmail = CreateObject("CDO.Message")
    objEmail.From = "from@domain.com"
    objEmail.To = "to@domain.com"
    objEmail.Subject = "My Subject"
    objEmail.Textbody = "Only use if you want to send a text email and not an HTML email"
    objEmail.HTMLBody = "" &_
    " &_ "HTMLPretty Font lalallala " &_ "
    AIS-IUS" &_ "More pretty font HTML woot
    " objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "{your mail server}" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = {mail server port} objEmail.Configuration.Fields.Update objEmail.Send

    This sends a pretty simple text email. If you want to send an HTML email simple craft your HTML in your favorite text editor and copy and past it to the line:

    objEmail.HTMLBody = "HTMLCODE" 

    Use &_ to append to the next line.

  • Batch removal of single file from server list….

    Since I posted how to deploys splash page using VBscript I figured it was only appropriate to post an article on how to remove it. Original post here.

    1. VBscripting skills.
    2. splash.html (HTML file that will be removed).
    3. servers.txt (txt file listing each server to delete/remove the splash.html file from).
    4. Assumes you have appropriate user privileges.

    [Read More…]

  • Batch file copy using VBscripting…

    One of my jobs long ago was to maintain the process for deploying splash pages to MS terminal server users when planned maintenance would be performed. The creation of the splash HTML page was simply a white page with red and black text informing the user when the service would be down. Pretty basic right? The opportunity I saw was to automatically deploy it, rather than remoting in or remotely copying each splash file to each Terminal Server. I wrote the following script to copy the splash page to a list of servers identified in a txt file.“

    1. VBscripting skills
    2. splash.html (HTML file that will be deployed)
    3. servers.txt (txt file listing each server to push the splash.html file to)
    4. Assumes you have appropriate user privileges.

    [Read More…]