Jump to content

daedalus

Active Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by daedalus

  1. I've been trying to think of ways to make this more portable, so I came up with this.

    Scenario: You have a computer you want to shut down via SMS and a USB drive, with portable thunderbird on it.

    Normally, you would need to find a place to copy it to on the computer, edit all of the paths, and then start it up.  Here's an easier way.

    First of all, copy the folder over to your USB drive.  Make the rest of the changes in there.  Next, you want to open your portable copy of thunderbird.  Click on the folder you created ("SMS" in my case), and go to Tools -> Mailbox Alert Preferences.  Edit the box following "Execute a command:", and change it to: "C:program filesThunderbirdshutdown.bat" .

    Next, in your folder, create a batch file in the thunderbird folder (I called mine copy.bat).

    Put this in there:

    @echo off
    c:
    mkdir "c:program filesThunderbird"
    xcopy /Q /E /Y /H  * "c:program filesThunderbird"
    cd "c:program filesThunderbird"
    del copy.bat
    run.bat

    This does a few things.  First, it turns off echoing and navigates to the c: drive.  Next, it makes a directory called "Thunderbird" in the program files, and copies all the files in the current folder to it.  If it's in the same folder as the thunderbird portable stuff, this should work correctly. 

    The xcopy options tell it not to be verbose (/Q), copy subdirectories (/E), overwrite without prompt (/Y), and copy hidden and system files (/H).  Only the /Q switch is really nessesary, so i'm pretty sure it would be okay to take out any others you are unsure about.  These switches (/Q, /E, /Y, and /H) conform to vista's syntax, so you may need to change it if you are running XP.

    The rest of the batch file navigates to the directory, removes the copy batch file, and runs run.bat .

    Now, you should be able to double click this and have the program copied to the computer, then started locally.  If thunderbird takes a long time to start up after copying, you might need to edit the "nircmdc cmdwait 5000 win hide ititle "Thunderbird" " command in the run.bat script to a number larger than 5000 (5000 = 5 seconds).

    Also, if you wanted to quickly remove the program, put this in a batch script (named mine "remove.bat")

    @echo off
    c:
    cd "c:program files"
    del /S /Q Thunderbird
    rmdir Thunderbird

    The /S /Q switches delete all subdirectories and make the program quiet, respectively.

    Let me know how this goes for you.

    daedalus

  2. Thanks.  I haven't tried this thunderbird setup on linux yet, but i'd imagine that it would work for any OS that can run thunderbird.

    Also, here are the two articles I originally read on lifehacker:

    How to shutdown your mac via SMS - http://tinyurl.com/54d6pb

    How to shutdown windows (with outlook) via SMS - http://tinyurl.com/mpe5o

    I also played around a bit more with it, and now it's set up to show the blue screen of death and shutdown when "BSOD" is sent to it.  Using this, I BSOD'd a few computers in my house at the same time.  Not very practical, but fun nonetheless.

    daedalus

  3. I recently read an article on lifehacker that explained how to shut down windows with a text message.

    (http://lifehacker.com/software/remote-comp...sage-172873.php)

    Although I think this is a really cool idea, I don't own microsoft outlook and I wanted to figure out a more portable way to go about setting up this project on my computer.

    With an add-on and a few tweaks, it is possible configure this, with a portable copy of Mozilla Thunderbird.

    This should take < 10 minutes to set up and configure.

    Step 1 - Get thunderbird portable

    Download a copy of portable thunderbird:

    http://portableapps.com/apps/internet/thunderbird_portable

    and extract it by running the exe.

    Step 2 - Setup thunderbird & install add-on

    First of all, set up an email account. I created a gmail account just for this project. Go through thunderbird's setup process and make sure your email account is configured properly. You'll probably need to login to your account and enable POP/IMAP settings.

    Now that you have a portable, working copy of mozilla thunderbird, download this add-on:

    https://addons.mozilla.org/en-US/thunderbird/addon/2610

    This is what makes it all work.

    To install this into the thunderbird portable folder, open ThunderbirdPortable, and go to Tools -> Add-ons and click install. Direct thunderbird to the .xpi file you downloaded and it will install the add-on.

    Restart thunderbird to proceed.

    Step 3 - Configure inbox

    Before you can configure the options for the add-on, you'll need to create a folder that will hold the text messages. Right click on "Inbox" and click new folder. Name this something memorable. I named mine "SMS"

    sms.jpg

    Next, click Tools -> Message Filters. Here you will pick the requirements your text message must meet in order to shut down your computer. Click "New" and create a filter. Configure your filter to meet some requirements in the top box, and configure the second box to move the message into the folder you created earlier.

    filter-options.jpg

    Step 4 - Configure add-on

    Before the add-on can run, it needs a command to run. Create a batch file in the portable thunderbird program directory that contains something like this:

    shutdown.exe -s

    In my example, I'm naming it shutdown.bat

    Next, open up your portable thunderbird and click on the folder you created earlier ("SMS" in my case). Then, go to Tools -> Mailbox Alert Preferences

    map.jpg

    IMPORTANT : Make sure that you have selected your folder BEFORE editing the mailbox alert preferences. Otherwise, you will end up shutting down your computer every time you receive an email.

    Check the Execute a command: checkbox as I have above, and point it to the shutdown batch file. Hit OK.

    To decrease the delay between the sending of the text message to the shutting down of the computer, go to Tools -> Account Settings...

    click "Server Settings" on the left side under the account you will be receiving text messages on. Under the server settings part of the box, change Check for new messages every _30_ minutes to every _1_ minute.

    settings.jpg

    Well done. Running this portable program will enable you to shutdown your computer from anywhere, as long as your computer is connected to the internet and you have a phone. Try it out - send a message to your email address that meets the criteria you set up in the filter. If everything works out, next time thunderbird checks for messages, it should get your SMS and shutdown.

    This concludes the practical part of the guide, but, as I'm sure you've processed, this could potentially be used from ANY computer connected to the internet to run ANY program. This has quite a lot of potential, so I decided to see what I could whip up in a couple of minutes.

    idea - run the program invisibly, in the background

    This is fairly easy to set up. Download nircmd (http://www.nirsoft.net/utils/nircmd.html) and place it in your thunderbird folder. Nircmd is a really cool tool that can be configured to do quite a lot of things. Read the .chm in the zip to see all of the options. After you have placed the executable in the folder (nircmdc.exe), create another batch file.

    put this in the file:

    @echo off
    start ThunderbirdPortable.exe
    nircmdc cmdwait 5000 win hide ititle "Thunderbird"

    This is a fairly simple batch file, which will open thunderbird in a new process, wait 5 seconds (for thunderbird to initialize and start up) and then hide the window. The program is still viewable in the your processes, but it isn't viewable in the taskbar.

    Now all you need to do is double click the batch file you have just created, wait a few seconds, and you will have a portable thunderbird running in the background, ready to shutdown your computer when it receives the right message.

    I'm sure you can think of many more ideas to add to this, so contribute whatever you're thinking. My apologies if I left out anything important in this guide. Please let me know if I did. If you get it working, let me know how it goes.

    daedalus

  4. Hello.  I recently bought a new gateway laptop.  It has Vista home premium installed on it.

    The thing I hate most about the computer is the keyboard configuration.  Instead of the CTRL - FN - WINKEY - ALT - SPACE configuration, this new computer has a FN - CTRL at the bottom left.  This makes simple cut and paste operations very awkward.  I have learned to bear with it, but it is still a hassle and I have trouble when I use my Linux box which is configured with the CTRL key first.

    Does anyone know of something free I could use to switch the FN and CTRL keys?

    daedalus

  5. DSCN0026.jpg?t=1177475792

    I just bought a $15 keyboard from office max and fooled with it to make it a Dvorak keyboard.  I have started learning the key placement and so far I am pretty slow going.  If you haven't heard of the Dvorak simplified keyboard, check out the wikipedia entry.

    Does anyone use a Dvorak keyboard?

    daedalus

  6. The best way to assure favor and help on a problem is to spend an entire post ripping at those responding to your thread. Sparda can say whatever the hell he thinks about your problem, and you can disregard it, as is your problem that you are trying to fix. But after you start turning your thread into a flame war, most willing to help will now disregard what you have to say.

    daedalus

  7. Yeah we need to have stricter gun control. but the problem bunch of crazy republicans red necks are pro guns. Plus the NRA (National Rifle Association) threatens to do a sneer campaign to anyone who is for gun control. When you start heading south more and more people have guns. And places like Florida everyone has a gun. This was a tragedy, and I do not believe it is the school's fault, or anyones fault, but we need better gun control.

    Please keep in mind that the people were killed in a gun-free zone. Thus having any gun was illegal. This didn't seem to stop the man from taking his weapon and shooting people, and a thousand other laws would have had the same effect. The people that actually follow the laws aren't usually the people who shoot and kill.

    This killer obviously had no respect for any of the campus laws, state laws, or country laws put in place to stop him from killing. He knew that murdering was illegal.

    daedalus

  8. Hey. I was playing around with traceroute in linux and I am having problems with the UDP side of things. I first tried normal UDP tracerouting, and here are my results

    daedalus@linux:~$ traceroute google.com
    
    ctraceroute: Warning: google.com has multiple addresses; using 64.233.187.99
    
    traceroute to google.com (64.233.187.99), 30 hops max, 40 byte packets
    
     1  * * *
    
     2  * * *
    
     3  * * *
    
     4  * * *
    
     5  * * *
    
     6  * * *
    
     7  * * *
    
     8  * * *
    
     9  * * *
    
    10  * * *
    
    11  * * *
    
    12  * * *
    
    13  * * *
    
    14  * * *
    
    15  * * *
    
    16  * * *
    
    17  * * *
    
    18  * * *
    
    19  * * *
    
    20  * * *
    
    21  * jc-in-f99.google.com (64.233.187.99)  96.280 ms *

    Seemed very strange, so I tried the ICMP windows-like options.

    daedalus@linux:~$ traceroute -I google.com
    
    
    
    traceroute: Warning: google.com has multiple addresses; using 64.233.187.99
    
    traceroute to google.com (64.233.187.99), 30 hops max, 40 byte packets
    
     1  * * *
    
     2  &lt; this step works &gt;  13.853 ms  13.447 ms  13.438 ms
    
     3  &lt; as does this one &gt;  15.445 ms  13.514 ms *
    
     4  te-9-4-ar01.aurora.co.denver.comcast.net (68.86.103.82)  16.687 ms  14.146 ms  20.078 ms
    
     5  68.86.128.53 (68.86.128.53)  14.210 ms  14.343 ms  17.315 ms
    
     6  12.116.159.5 (12.116.159.5)  15.829 ms  16.349 ms  16.821 ms
    
     7  tbr1013801.dvmco.ip.att.net (12.123.207.138)  42.655 ms  41.976 ms  41.116 ms
    
     8  tbr2-cl31.sffca.ip.att.net (12.122.12.133)  39.618 ms  39.392 ms  42.649 ms
    
     9  ggr3-ge90.sffca.ip.att.net (12.122.82.149)  38.219 ms  39.612 ms  37.818 ms
    
    10  att-gw.sanfran.level3.net (192.205.33.78)  40.348 ms  40.684 ms  40.631 ms
    
    11  ae-1-55.bbr1.SanJose1.Level3.net (4.68.123.129)  41.523 ms  45.727 ms  42.543 ms
    
    12  as-3-0.bbr2.Washington1.Level3.net (4.68.128.206)  93.909 ms  88.618 ms  89.619 ms
    
    13  ae-21-54.car1.Washington1.Level3.net (4.68.121.114)  254.379 ms ae-21-56.car1.Washington1.Level3.net (4.68.121.178)  90.171 ms ae-21-54.car1.Washington1.Level3.net (4.68.121.114)  140.029 ms
    
    14  GOOGLE-INC.car1.Level3.net (4.79.228.38)  90.489 ms  93.916 ms  90.612 ms
    
    15  66.249.95.149 (66.249.95.149)  95.703 ms 72.14.238.136 (72.14.238.136)  102.134 ms 66.249.95.149 (66.249.95.149)  95.495 ms
    
    16  72.14.236.15 (72.14.236.15)  98.528 ms 216.239.47.1 (216.239.47.1)  95.767 ms 72.14.236.173 (72.14.236.173)  95.699 ms
    
    17  216.239.49.222 (216.239.49.222)  102.050 ms 72.14.236.19 (72.14.236.19)  99.972 ms 216.239.49.222 (216.239.49.222)  102.520 ms
    
    18  jc-in-f99.google.com (64.233.187.99)  110.628 ms *  96.815 ms

    Looks fine. Does anyone have a clue why the UDP traceroute doesn't work?

    daedalus

  9. I think you are looking for a DMZ (demilitarized zone) option, but this is usually a bad idea. If you want to open just a few ports or a short range, your router should have some setting for that. This is much safer than then completely opening your computer to attacks by script kiddies worldwide. I check my router's logs often, and I usually get two or three port scans a week. This most likely will also happen to you, and you can expect some attacks on your open ports.

    Even though it may be tedious, just take the time to forward _only_ the ports you _need_ opened.

    daedalus

  10. Hello. I set up my u3 usb device using TehHacks' method. I set up some of my own payloads, but I am having trouble running them in the background. A cmd windows opens and quickly exits, which takes the stealthyness out of the whole operation.

    Is there a good was to run a batch file in the background?

    I found a great many tools which start hide a running batch file, but these are command-line tools, which also must pop up a cmd window. I also wrote a nice little vbasic script to run a program without showing anything, but when I tried running it on other computers I needed the microshaft vbasic libraries.

    Any ideas?

    daedalus

×
×
  • Create New...