Monday, July 29, 2013

Cisco router - Reset config

,
Start putty & connect to the communication's port with the default rates etc....
Restart the cisco router in order to break the boot sequence of the router by tapping the Break key.
breaking the boot sequence...
After you broke the boot sequence, issue the following command:
confreg 0x2142
"You must reset or power cycle for new config to take effect" is what you will face after the proper usage of the above command, reset by giving this:
reset
issuing the reset command...
Now, after some time it should start booting.. It will ask you if you`d like to start from scratch.. say yes/no depending what you actually want to config.

[...] ~config taking place

After the configuration, you have to exit the NVRAM ignorance mode by issuing the commands below:
config-reg 0x2102
Exit config# using Ctrl+C and then:
wr mem
reload
Hint: If you would like not to reset the router's configuration - altering the password only is done through the same way but answering no to the 'start from scratch' dialogue, then by saving the running configuration giving the copy start run command at that time. For more info reply below.
Read more →

Installing a LAMP server

,
LAMP is a combination of free, open source software. The acronym LAMP refers to the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP, Perl or Python, principal components to build a viable general purpose web server.

Install Linux:
just kidding...
  1. Install Apache:
  2. sudo apt-get install apache2
    After everything is finished, fire up a browser and type:
    http://localhost/
    you should see already a folder, if nothing is found then you have to re-install it. If you still can`t find a solution, drop a line below.
  3. Install PHP:
  4. sudo apt-get install php5 libapache2-mod-php5
    After everything is finished, we have to restart apache to get notified about php:
    sudo /etc/init.d/apache2 restart
  5. Install MySQL:
  6. sudo apt-get install mysql-server
    Then get access to console by typing:
    mysql -u root
    And change your password:
    mysql SET PASSWORD FOR 'root'@'localhost' = PASSWORD('P@$sw0rd');
    After that, install PHPMyAdmin:
    sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
    Edit php.ini to work with phpmyadmin...
    gksudo gedit /etc/php5/apache2/php.ini
    And change this line:
    ;extension=mysql.so to extension=mysql.so
    Last thing is to restart apache to take care of MySQL too:
    sudo /etc/init.d/apache2 restart
    Go again at http://localhost and check what you've done!
Read more →

Friday, July 19, 2013

RDC authentication bypass

,
This is not a hack.
  1. Open up a command prompt and type mstsc.exe.
  2. Click on Options drop down menu to access advanced options about the connection.
  3. Save the connection settings by clicking Save As..., somewhere in your desktop.
  4. Right click this .rdp file now and open it using notepad
  5. Find authentication level:i:2 and turn it into authentication level:i:0.
  6. Add enablecredsspsupport:i:0 at the end of the text file.
  7. Then, open the rdp file which we've just edited and connect to the remote computer.
  8. If it asks you for a password, enter the password of your local user account.
done!

Read more →

Sunday, July 14, 2013

Reduce MTU size to accept 802.1Q or ISL

,
InterSwitchLink and 802.1Q are two different protocols for trunks between network devices, though they cause some problems when they are not configured properly...

In order not to cause frame errors so packets can be accepted in the RX line, you have to reduce the MTU size if you are working with cheap equipment or non-cisco devices.

I wont explain the 'how-to' because devices vary, just a reminder :)
Read more →

Wednesday, July 3, 2013

Icon not displayed correctly? Rebuild the icon cache.

,


This will work for Windows Vista, 7 or 8.




This is the default location of icon cache database
C:\Users\User-Name\AppData\Local\IconCache.db

Fire up cmd as an Administrator and give the following commands by turn:
ie4uinit.exe -ClearIconCache
taskkill /IM explorer.exe /F
DEL "%localappdata%\IconCache.db" /A
shutdown /r /f /t 00
This will force the IconCache.db to rebuild. 
Read more →

Tuesday, July 2, 2013

Export - Import a DHCP database on a Windows Server

,


Moving to another server? Backing up a windows server? Here you go:


1.
netsh dhcp server export c:\dhcpbackup.txt all

2. do not create a new scope in the dialogue, we're restoring a backup, remember?

3. after you disable your old dhcp server:

4.
netsh dhcp server import c:\dhcpbackup.txt all

Problems found:
If:
"An Internal Error Occurred"
then:
delete the following entries inside the txt before restoring:

006 DNS Server
015 DNS Domain Name
Read more →