Thursday, November 11, 2010

MAKE YOUR LIMITED ACCOUNT ADMIN VIA COMMAND PROMPT

To do so, you need to open the command prompt in admin mode..

Goto Programs -> Accessories -> cmd
Right click on it and select run as.
Select run as following user and provide the admin's username and password.

Now command prompt will open. In that add this command...

c:\..> net localgroup administrators /add

You have to add the account name in place of   and then press enter.


Now Logoff and again login.

You will be administrator now......  :)

SEND FILES THROUGH LAN IN XP

Here i am telling you the shortcut... try this its amazing....... :)

You need 2 computers to send file from one computer to another.
Don't try in Win 7 or Vista. Its removed from them....

No problem even if you are a Limited user...

Follow these steps:-

Goto C:\Program Files\NetMeeting
Now find conf.exe and doubleclick on it....
It will ask for install..
Click next.
Add name, last name and email id.... You can add any garbage....


Click Next and again Next.

Now in this pic as shown, select Local Area Network.


Click Next.

Uncheck both the options given....


Click Next-> Next -> Next until it finishes......

Now a screen as shown will appear...

Now even if you close it, you can now run it again by going to the same folder and clicking conf.exe . Now it will not ask for settings again and will start from here.

On the second computer, do the same thing.

One important thing to keep in mind.....

The default path for storing the transferred files is in "C:\Program Files\NetMeeting\ Receieved Files". As this is a "limited" account, and by default this folder is not there, so either create this folder by using "command prompt" in "Admin mode" or follow the steps given below. As I know some of you will create error in creating folder through command prompt, so use the below steps to change the folder location...

Goto tools tab and select "file transfer".


Now in this window, goto File and select change folder. Select "my documents" folder of your limited account.


Now you are done....
Run the conf.exe on both the computers simultaneously...
Then Enter the IP of other computer as shown and press "Enter".


 Now the other will receive a call. Pickup the call...
Now you are connected...

Once you are connected, you can transfer files.......

Now the person who wants to send the file, just click on the bottom Right button.
A dialog box as shown will appear.


Now after adding files, click on send to all...


It will send to all....
You will receive it on other computer...


Now you can close it...

So no need to have admin account...  just need to change the received files folder... 
You can also directly run it by typing conf.exe in "Run". But don't use it as it remains there and anyone can see what you have tried to run......
Thats it. Now you can share anything to anyone..... :)

Wednesday, November 10, 2010

Perform Administrative tasks using command prompt......

If we are logged in to standard user account and we want to enable or disable a device from the device management console, se switch accounts, log in as administrator and then change the settings. But this can decrease the performance of your computer making it unable to respond for some time. So here i am going to show you another method through command prompt of standard user, using which you can easily enable or disable the devices. Remember that we need to know the administrator accounts password.

Steps to be followed:-
  1. Goto Start -> Programs -> Accessories.
  2. Right Click on Command Prompt and select run as.
  3. Now select "the following user" and provide the username and password of adminstrator account.


Now the command prompt will get opened with admin mode....

Now type mmc devmgmt.msc

This will open the management console in admin mode...
Now enable or disable whatever you want to do.....


Now you don't have to login as admin!!!! It's this much simple........

thank you for reading my post......... :)

Sunday, November 7, 2010

How to crack password using CAIN

In this post, i am going to tell you about how to crack the password of the remote machine by using the cain&abel utility.

As earlier in one of my blogs, i have written about network security, i have written about using strong passwords and updating them frequently, here i will show why we need to do so.

For this you need to have cain&abel installed on your machine. You can get it from the link provided here.

Next install it on the machine.

Now run it..... you will get the window as shown here...

Start the sniffer by pressing onto it.........
It will start sniffing packets from the LAN.


Now it captures the request which a computer from LAN sends to the remote computer whom it is tryig to access. It sends its NTLM hash. So unless someone access the machine on which we have run the sniffer, we can't get its hash.

So there is a trick to get as much requests as possible by sharing a folder having "CACHY" name so that people try to click on it and try to open it, then the sniffer will capture its NTLM session hash.

To view the hashes captured, goto sniffer tab -> passwords and then click on SMB on the left hand side...


Now just right click on the HASH you want to crack and select "send to cracker".


Now goto the CRACKER tab and select LM & NTLM hash from the left side....
You will get all the hashes which you have sent for cracking..


Now right click on any hash which you want to crack, select brute force attack -> NTLM session security hashes


Now it will ask for the specifications about which kind of password it is..

Now here comes some common user error exploits....
1. Most of the users keep their passwords as simple words of english or numbers.
2. The password is of small length
3. Password comprises of either alphabets or simply numbers.
4. Only one kind of case-letters is used, either upper-case letters or lower-case letters.
5. Less than 8 characters.

So predicting this first leads to saving a lot of time and makes cracking possible in a short span of time.

So in the dialog box which appears, choose the predefined characterset or have your own...


Minimize the password length so that it can be guessed soon if it is really small..

Then start the cracking..


This is how you can crack the passwords of the remote machines...

If you have some hash which has complex password and you are unable to break it, then you can submit it to the websites which accept hashes and they will give you the result of cracking after it is cracked..

This cracking is by Brute Force method about which i have explained in one of my ppt uploaded. You can watch it here...

http://pingmeup.blogspot.com/2010/05/cracking-using-rainbow-tables.html

 So after watching this i hope you will try to keep strong network passwords..

I hope you would have enjoyed this blog...
If you do, then do share it with others..

THANKS....... :)

Friday, November 5, 2010

How to run Turbo C (16 bit ) on windows 7 64 bit

One of the biggest problems which students face is to run turbo C in full screen mode. But this is not possible in windows 7 or windows vista.
But one can increase the font size and change the font to let the turbo C get maximized so that one can work on it properly. The method is:-
Run turbo C by typing in run the path of tc.exe
Right click on the top of the TC window and select properties....
Then goto the font option and change the font and fontsize...
Click Ok and the size of the window will be increased...

Problem:-
This method works fine in case of 32 bit windows. But in case of 64 bit windows, it doesn't work.

Solution:-
Solution provided to this is to use XP mode in windows 7.

But there is another problem.....
XP mode requires windows 7 professional or windows 7 ultimate. Most of the laptops purchased by the students come with windows 7 home basic x64. So they can't run the TC on their laptops plus they are unable to use the XP mode. So there is one more way to run TC in full screen.

For this you will need vmware workstation in which we will install XP and use it for supporting the 16 bit applications.

Steps you need to follow:-
First install vmware on your laptop.
 

After installing, run "VMPLAYER" .

Now create a new XP virtual machine by choosing "Create new virtual machine".
How to create XP virtual machine is given in the link below...
follow the steps provided...

How to install XP in Vm Player

Next power ON the XP machine and login to the machine...
Install all the softwares which are 16 bit and doesnot run on 64 bit machine...
Install Turbo C as well...
 
Now goto Virtual Machine -> Enter Unity


Now it will be locked as shown....

Minimize the virtual machine....
Now you will notice a new tab will come over the start button when you take your mouse over the start button...


Click on that tab and you will find that the start button of the virtual machine is now also on your desktop.

Now goto run of the virtual machine and provide the path of TC.
It will get displayed in the Host machine..
Now you are able to have 16 bit applications along with the 64 bit OS.


One thing to be noted that you can't run TC in fullscreen mode...
For the first time when you will run TC, ti will be in the fullscreen mode and so it will be minimized to the taskbar. You can't open it at that moment of time.
So you have to select it and press ALT+ENTER to make it to normal view...

Now you will be able to see TC like this....

Now you have to take the above mentioned steps of how to increase the size of the TC by changing the font....

So you will have TC maximized like this....

You can even run gtalk which is 16 bit and can't be run on 64 bit OS.

Try this and you will enjoy it.....

Next time i will write about how to use C in Visual C++.

Thursday, October 21, 2010

AHHH.............. IT DIDN'T HAPPENED THE WAY I SUPPOSED!!!!

In this post i am going to share some thought which i thought should work but it didn't....

Earlier in my previous post, i have talked about local peer-to-peer connection and transferring of files directly rather than going through the internet. At that point i talked about skype. So i thought of some idea why not to share files as torrent files created and anyone on local network who wants that file can simply add that torrent and due to local peer connection, the transfer will take at a much faster rate and if a file is of say 30 MB, then it would be copied in a minute in a general scenario if we are having a LAN of 100 MBps.

So i created a torrent of a file and tried to download it from some othe PC on the LAN, but to my surprise, it went the other way. I got connected on LAN but the transfer rate was still very slow as in case of normal download from web.

Here is the pic of the server... you can clearly see the name of my machine trying to download the torrent. So name resolution has taken place... and i am connected locally...


The picture below is the picture of the client machine on which i was trying to download the stuff.. You can easily see the Server's IP 190.168.7. 45 . Also the transfer rate taking place....


Of all this trouble, i found out one interesting thing......

Once you are connected locally, then even if your internet goes off, the download still does not stops till you are connected locally with each other.

Here in my Hostel, many students are trying to download the same reality show and this sometimes makes them connected to each other locally as one of the peers and so transfer among them takes place.....


At end, thanks for your pacience for reading my post....  :)

Regards,
Rahul Sharma

Sunday, October 3, 2010

Internet Sharing by one LAN Card.... A new Discovery (For AITians)

Today i am going to describe the steps which i took to solve one of the biggest problem for me, how to make Internet server virtualized so that anyone can be server.

Lets first understand the problem statement....

Internet connection sharing is done by using one dedicated server which runs on continuously. So a person who decides to be server, has to face problems to continuously run his computer for hours. If the server needs to be shifted, then we have to shift the cable connection, move the extra LAN card to the new PC and it takes time too.
I have minimized his burden by virtualizing the server and thus anyone can be server without any problem. I have eliminated the need of extra LAN card thus sharing and receiving internet through same NIC. Thus if the computer sharing internet shuts down, then another person can share the net from his own computer within 2 minutes.

So what forced me to think in this way???


I saw the network utilization andfound that for maximum time, the utilization of 100mbps LAN Card is just 0.2-0.4% which is just the wastage of network.
Also the extra LAN card which we are using for the internet purpose, that too uses 600kbps speed internet which is negligible as compared to its capability. So why not to eliminate the extra LAN card and use the same LAN card for both the purposes.

SO WHAT I DID???
I used the virtualization technology provided by the vmware workstation software to solve this problem.
I first created a virtual machine running windows XP which is going to be used for the server purpose…
Now instead of using physical lan card, I installed two virtual lan cards onto the virtual machine.
Now I installed all the softwares required onto the virtual machine.


Now the Input from the Modem is added to the HUB. Now one connection from the HUB runs to the computer which is going to share the internet…
Since I have kept the virtual network adapters of the virtual machine to be in bridged connection, so the machine appears as an individual machine on the LAN.

Now one of the network adapter is set to be getting its IPv4 address dynamically from the DHCP server of the internet providing company.
The other adapter is assigned the IP address which the users are going to use as the address of the server.
Now this simple machine can be copied and stored somewhere so that if sometime, something goes wrong, then the faulty machine can be deleted and the new one can be simply copied at its location.

Also now this machine can be distributed to all the clients. So if at some time the client sharing the internet shuts down his PC, even then the other user can simply switch on that virtual machine and share the internet.
Thus the burden of continuously keeping the machine in the running state is reduced.

Also the burden of extra LAN card on the machine is reduced, electricity consumption is reduced…

People Affected
1. Hostel students.
2. College Departments.
3. Network Administrators.
4. People using internet by sharing among themselves.
I hope you will like this post....... If you have any doubts or queries, you can ask me at any time....
I would also like to thank my friend Manjit for helping me to try out this idea on his server otherwise it would have remained as an idea only with no practical implementation...

:))

Saturday, October 2, 2010

LOCAL PEER RESOLUTION

working on my computer today, i found a nice thing. The concept relates to the local peer resolution and connection among one another as local peers. I was chatting with one of my friend on LAN and i shut down the server. But still the connection among us on the chat was not broken. We were able to chat with each other, listen to one another through speakers and could send files . Also i tried to send a 4 mb file to my friend and it took less than a second to be downloaded by my fellow friend.



Why this happened???

Actually we got connected as local peers as we were on the same LAN and the Internet connection was coming from the HUB which distributed the packets to all and so we got connected on the local area network....

We needed internet to resolve our addresses, and once it resolved, we were able to communicate with each other without having internet connection also.   :)

Thursday, May 27, 2010

SECURITY





In today's world, network security has become an important issue. To hack someones account and to use it is not much difficult today with the use of advanced softwares available in the market which can hack the passwords, can crack the hashes and use them to steal the valuable information.

Various tools can be used for cracking like:-

For windows password cracking, i.e. for logging into someone's account by cracking his password, one can use the free CD available for download called ophcrack. The download link is as given here :-
http://ophcrack.sourceforge.net/download.php?type=livecd
Download the live CD and boot from it. One can easily crack the password of other's computer. It uses the rainbow tables to crack the hashes.




The CD will not work in the same manner for win Vista and XP. For cracking XP passwords download the one for XP and for the vista or win7 download the Vista one.

One can also use cain&abel to crack one's password when he is on LAN. When a computer scans the compuetrs present on the lan, then it sends its NTLM hashes with security info to the other computers . One can trap those hashes and can crack them either using the brute-force mechanism or by using the Rainbow tables. I have cracked the passwords of several computers on the LAN without ever being sitting on those pc's or using them. You can download it from http://www.oxid.it/cain.html





This method of password cracking is highly dangerous for the computers as a hacker can easily log onto the machine if its remote login is enabled as he knows the password and without even letting the others to know about it can easily steal the information. I have not shared the advanced information of cracking using cain but if someone is interested, he can contact me and i can send him the data.

Now the steps how one can neglect all these attacks:-

1. The ophlive cd uses the prebuilt rainbow tables and sometimes uses the bruteforce attack, but one can avoid this attack by including special symbols in their passwords. This CD doesn't work when the password contains special symbols as it doesn't have th rainbow tables for the same.

2. Use of long passwords, greater than or equal to "eight" also helps in denying the attackers. The figure 8 is important because if the password is less than 8 characters , then the computer stores it in the form of LM hashes, which are easy to break, but if it uses 8 or more characters, then it uses the NTLM hashes to store them which are more secure than the LM hashes.

3. For email accounts, always use strong passwords, which include special symbols, alphabets,numbers. The reason for using all these is that when using all these, the number of password combinations become very large, and to develop a rainbow table for them takes a lot of time, in months and years. So its very difficult or impossible to crack password in this case.
Use passwords like the beginning letters of a phrase or statement which is easy to remember like
odiwgjidc (one day i will get job in dream company)
now this password is not even found in dictionary and is very difficult to break.

4. Try to avoid the dictionary alphabets. They can be easily broken by bruteforce attack....

5. Change your passwords frequently and don't use same passwords for different accounts...

For more details you can view the ppt which i have uploaded and the link is provided here...
http://www.slideshare.net/rahulsharmaait/password-cracking

do give your feedback and suggestions... Hope you have liked it.....

Thank you...

Tuesday, May 25, 2010

INSTALL SOFWARES IN NEW LOCATION


 


 1.  Start Registry Editor by entering “Regedit” in the run box.open run by pressing win + R. 
 2.  Nest locate the following in the registry by using the search method:  "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion"
 3.  Right click on the value named ProgramFilesDir & change the default value  C:\Program Files to  the   path you want to install your programs in.
 4. Click OK and Exit.
    Windows, by default, will now install your programs in the new drive or path.

    Friday, May 14, 2010

    3 interesting facts of MICROSOFT WINDOWS





    1.You cant create a folder named CON,go try it
    2.write the following into notepad :"bush hid the facts" save the file and see the magic.
    3.open ms word and type "=rand(200,99)" and press enter and see the magic.




    Do you know why this happens and any tips??


    Lets first solve the first query.......

    Special names such as (CON) can be used as folder names! Here is how:
    1- Goto DOS
    2- Type MD \\.\C:\CON. The folder will be created.
    You can check it in Windows Explorer also, but you can’t delete it directly, in order to delete it:
    1- Goto DOS
    2- Type RD \\.\C:\CON
    In short, use the network path syntax instead of absolute path syntax.
    If any one told you it is impossible to make folder named (CON) Now you can say with confidence that it is not true…
    So why this happens and what is the main reason is as follows:-

    1) "Con" is already a key word in MS DOS. It is not only con that you cant create, try creating folders with the strings PRN, LPT1, AUX, NUL, COM1, etc. All these strings have a critical usage hence they cant afford to be used as filenames/foldernames.

    And HOW you can create it is basically because of "The Universal Naming Convention, or UNC". This provides a common syntax describing the location of a resource on a particular network. But this is not compatible with DOS. So the UNC for windows would be something like

    \\RemoteHost\sharedfolder\resource

     But \\remotehost\drive:\con doesn’t mean anything, because without having a process(explorer.exe) on the remote host, there is no current ‘console’. The “.” in \\.\c:\con suggest the local server. Now, you are pointing to your own computer, and you have all the privileges on every folder of your computer, hence you can create it ONLY in Dos Mode (because of the backward compatibility)

    2) Actually it is a bug in XP, its not that "Bush hid the facts" works, try a string with the 4-3-3-5 format. eg. "abhi can say awesm". Why this happens is you save in 8bit ASCII and read in 16bit Unicode. Actually there is a long explanation to this bug, which relates to ASCII and unicode determination. What happens in the notepad is whenever a txt is saved, the notepad has a function called isUnicode or something, i cant remember that (It relates to hex codes and stuff, if anyone can explain that, cool!). That function uses some algorithm to determine what format it is. So thats where the bug lies. If you have eastern languages installed, you would get chinese instead of the boxes.

    3)rand(200,99) means, type the default statement "The quick brown fox jumps over the lazy dog" 200 paragraphs with 99 sentences in it. And for another info - ""The quick brown fox jumps over the lazy dog" has all the alphabets in the English language. Try =lorem(200,10). :)

    Enjoy......... ;)

    Monday, April 26, 2010

    WINDOWS MOBILE DESKTOP THEME "love it......."

    Wanted to make your desktop more stylish with windows phone look, like the one below
    Screenshot 1


    then use the steps given below:-
    • Go to www.rainmeter.net and download rainmeter.
    • Now you need to install it and then run it once. Then close it.
    • Now download the omnimo theme for rainmeter from the website http://fediafedia.deviantart.com/art/Omnimo-UI-1-01-for-Rainmeter-158707137
    • Install omnimo and then run rainmeter. You will see the windows phone like icons as seen in the image above. Now you can add new buttons as per your choice, can position them anywhere in the screen. The creativity lies in your hands.
    • Now to view other gadgets as there is clock and sidebar, those ones are from the enigma theme of the rainmeter,
    • Just right click on the desktop, then go to configs --> then enigma and from there you can select any gadget that you want to place. It will appear on the top left corner of the screen. You have to drag and place it where you want to.





























    Now design your desktop as you like. As you see in above diagram , once you havedesigned everything, right click on desktop, goto themes, and select autosave. It will let the theme be as it is and will not reset it on next boot on.

    Now design your desktop as i designed....
    Screenshot 2.........



    Screenshot 3

    Screenshot4

    Screenshot5


    Thanks for viewing...
    If you have any difficulty, then feel free to contact me......