Saturday, September 29, 2012

How to Compile Perl Scripts In Windows



Today  I want to show you how to compile and run Perl scripts or Perl Exploit in Windows environment.

1.First download the Active Perl from: http://www.activestate.com/activeperl/downloads
2.Install the ActivePerl by default settings.
3.put your script in a pl file  and save it in the bin path of active perl. in my case: "C:\Perl64\bin\expl.pl"
3.open command line by going to Start Menu > Run > key in CMD press enter.
4.switch the path to "C:\Perl64\bin\" it might be different , depends on the path that you selected on the time of installing the perl!

5.type "perl expl.pl"and press enter.

In the above example my file name was expl.pl , perl command will compile and run the perl script or exploit.


Monday, September 24, 2012

How to Switch From Local Google To US Based Google.Com


If you are accessing Google.Com from non US area you will see Google in your country local version, Sometimes you need your search result in US based Google or you might need some services from Google that is only available in US base version , So how you can Switch back to US Version?

There are two methods for doing this:

1.In the Google.com very first page, on the right bottom side of page there is a link named "Google.com" just click on it. Now you are in Google US version.



2.The second method is to add /NCR in address bar after www.google.com , it will redirect you to US version of Google.
http://www.google.com/NCR

Sunday, September 23, 2012

Drunk Driver or is Using Apple Maps!


Arithmetic Operators In PHP

Today i need to use MOD operator  in calculation so i went to manual and check for that , the MOD operator in PHP is % . And here more Arithmetic Operators in PHP:

Example Name Result
-$a                      Negation                  Opposite of $a.
$a + $b         Addition Sum of $a and $b.
$a - $b Subtraction Difference of $a and $b.
$a * $b Multiplication Product of $a and $b.
$a / $b Division Quotient of $a and $b.
$a % $b Modulus Remainder of $a divided by $b.

example:

<?php
 echo (5 % 3);           // prints 2
?>

Friday, September 21, 2012

German Government Asks to Stop Using Internet Explorer

The German government urged the public on Tuesday to temporarily stop using Microsoft Corp's Internet Explorer following discovery of a yet-to-be repaired bug in the Web browser that the software maker said makes PCs vulnerable hacker attacks.

"A fast spreading of the code has to be feared," the German government's Federal Office for Information Security, or BSI, said. The BSI recommended that users access the Internet using alternative Web browsers until Microsoft's security update becomes available.
Microsoft said on Monday that attackers can exploit the bug in its Internet Explorer, used on hundreds of millions of computers, to infect the PC of somebody who visits a malicious website and then take control of the victim's computer.
The German government's Federal Office for Information Security, or BSI, said it was aware of targeted attacks and that all that was needed was to lure Web surfers to a website where hackers had planted malicious software that exploited the bug.

reference

Google Day in Malaysia, g|malaysia on 3rd & 4th October 2012


Google team announced first annual g|Malaysia, happening October 3rd and 4th in Kuala Lumpur.
G|Malaysia :
"We're looking forward to engaging with this growing community of students, professors, business leaders, and entrepreneurs who are as passionate about technology as we are."

The first day "October 3rd" is suitable for marketers, webmasters, government and entrepreneurs. Technical and non-technical presentations will focus on Google products, platforms, tips and trends for business. Attendees will also get to see awesome applications built by malaysian developers for malaysia and the world!

The second day "October 4th" is suitable for university faculty staff and students. Presentations will focus on Google products, programs and opportunities beneficial for universities. Attendees will also get to hear about university student experiences with Google!


It's happening at Berjaya Times Square Hotel & Convention Center in Kuala Lumpur.
For Free Registration and more information about this event, please check G|Malaysia Website.

Thursday, September 20, 2012

Steve Jobs Died Again


Google Will Stop Supporting IE8 on Nov.15

Google will drop support for Microsoft's Internet Explorer 8 (IE8) for its online apps and services in mid-November, effectively ending support for many users of Windows XP. 

Google Company Wrote on a Official Blog:
"As we announced last year, we support the latest version of Google Chrome (which automatically updates whenever it detects that a new version of the browser is available) as well as the current and prior major release of Firefox, Internet Explorer and Safari on a rolling basis. Each time a new version of one of these browsers is released, we begin supporting the update and stop supporting the third-oldest version.

Internet Explorer 10 launches on 10/26/2012, and as a result, we will discontinue support for Internet Explorer 8 shortly afterwards, on 11/15/2012. After this date users accessing Google Apps services using Internet Explorer 8 will see a message recommending that they upgrade their browser."


Motorola Launched First Intel Powered Smartphone: Razr i

Motorola and Intel launched the “Intel inside” device, the Razr i.  It is the first Intel device by Motorola and also the first smartphone sporting a 2 Ghz Intel Processor. The Razr i is similar with the recently announced Droid Razr M for Verizon Wireless, the only difference is that the former runs a 1.5 Ghz dual core Qualcomm Snapdragon S4 while the latter launched with the single core 2 Ghz Intel processor.

Intel is making some headway into the smartphone business. It has partnered up with major players such as Motorola, Orange, Lenovo, and ZTE to expand its presence in the mobile world as its core PC business faces a looming slowdown, with consumers shifting their disposable income toward smartphone and tablets and away from laptops and desktops.


The Razr i is equipped with several attractive features such as a 4.3 “edge-to-edge” Super AMOLED display, a 2000mAh battery, and 32GB internal storage expandable with microSD. Motorola has its improved camera application. Razr i has a 8 MP camera, a dedicated camera button which can wake and take a photo a bit more than a second.

The phone packs a single core 2-gigahertz Atom Z2480 “Medfield” chip which allows the camera to capture 10 shots in less than a second and has a dedicated camera key — features not available on the Qualcomm Snapdragon-powered Razr M. Intel has also stressed that their processor has been specially optimized for smooth webpage browsing.

Razr i runs Android 4.0 Ice Cream Sandwich. It features a penta band antenna, which means it can roam in the U.S., and is compatible with HSPA+ 14 networks run by AT&T and T-Mobile.

Razr i offers a fast camera, an edge to edge display, impressive battery life, fast UI and web browsing. The alliance between Motorola and Intel is a significant stepping stone for Intel to get deeper into the smartphone market, with Motorola a unit of Google, which runs the Android ecosystem.

Wednesday, September 12, 2012

Play Snake while your video is loading on YouTube


You might suffer from low speed while playing videos on YouTube, try this it's kind of fun. when YouTube pause the video to buffer again a Swirl start moving in middle of screen.. if you press up or down Arrow keys on your keyboard that swirl become a snake and you can play Snake Game while you are waiting for the video to load.



Credits goes to Amir Zarei

Google Drive Starts @ 5GB


Google Drive. Keep everything. Share anything. 

Create & collaborate.

In Google Drive, you can create new documents, spreadsheets and presentations instantly. Work together at the same time, on the same doc, and see changes as they appear. 

Work better with the products you use everyday.

Gmail

Say goodbye to bulky email attachments. Send a link from Google Drive in Gmail and everyone has the same file, same version—automatically.

Google+

Your pictures in Google Drive are instantly available in Google+, so you’re never more than one click away from sharing with your circles.



Powerful search.

Google Drive helps you get to your files faster. Search for content by keyword and filter by file type, owner and more. Google Drive can even recognize objects in your images and text in scanned documents.


View anything.

Open over 30 file types right in your browser—including HD video, Adobe Illustrator and Photoshop—even if you don’t have the program installed on your computer. 

Google Drive with your favorite apps.

Create, open and share files from a variety of apps directly in Google Drive. 

Share the way you want.

You can share files or folders with anyone, and choose whether they can view, edit or comment on your stuff. 

Start a discussion.

Create and reply to comments to get feedback and make files more collaborative. 

Go back in time.

Google Drive tracks every change you make—so when you hit the save button, a new revision is saved. You can look back as far as 30 days automatically, or choose a revision to save forever.



you can also upgrade your storage,25 GB for $2.49 / Month  &&  100 GB for $4.99 / Month  && ...

Monday, September 10, 2012

Anonymous claims Resposibility About Taking Down the GoDaddy by DDOS



TheNextWeb writes:
"A member of the Anonymous hacktivist group appears to have taken down GoDaddy with a massive Distributed Denial of Service (DDoS). The widespread issue seems to be affecting countless websites and services around the world, although not for everyone. Godaddy.com is down, but so are some of the site's DNS servers, which means GoDaddy hosted e-mail accounts are down as well, and lots more. It's currently unclear if the servers are being unresponsive or if they are completely offline. Either way, the result is that if your DNS is hosted on GoDaddy, your site may also look as if it is down, because it cannot resolve."

Windows 7 Taskbar Quick Application Switch


On Windows Seven you can easily switch between open application in your Taskbar , you just need to hold down the windows key and press the number of that application on taskbar.

For example in the picture for launching the Google Talk you have to hold the Windows Key+Number 4.

Sunday, September 9, 2012

Share your Broadband Internet over WIFI like a Virtual Router

Sometimes you might don't have access to wireless internet at office or somewhere but you have cabled internet and you need to access internet from your mobile phone, then this solution will help you.
You can easily share the Wired internet into Wireless network mode by using this software.
This software act as a Virtual Wireless Router and use your laptop or pc wireless card to share the broadband internet wirelessly.

Virtual Router  By CodPlex is useful software that helped me to for this purpose, now how to do this:

1. Download Virtual Router from here .
2. Install VirtualRouter on your Windows 7/Vista or XP.
3. Run the software from start menu.
4. In Network Name(SSID) field put a name for your WiFi network. ex "My_Hotspot"
5. In Password field , determine a password for your WiFi, it should be at least 8 characters.
6. Choose your wired internet source at Shared Connection section.
7. Click Start Virtual Router.
8. Now from your mobile,tablet or laptop search for wireless networks, you will find your network, in my case "My_Hotspot" then click connect. you will be asked for password, enter the chosen password in the virtual router.
9.Done!

Troubleshoot:
You might can connect to the hotspot by your mobile but don't have internet access then double check below steps:
1.Be sure the ip configuration for your mobile,tablet or laptop that want to connect internet via wifi set to DHCP and don't use manual IP configuration.
2.Be sure that your Antivirus/Firewall is not stopping the software from sharing the internet. MOST OF TIME THIS IS THE PROBLEM! So you need to declare a new rule for your firewall to let this software work freely or disable the firewall.

Thursday, September 6, 2012

What is Zero Day Attack

You might hear the world "0day", In Computer Science it refer to an attack that exploits a previously unknown vulnerability in a computer application, meaning that the attack occurs on "day zero" of awareness of the vulnerability. This means that the developers have had zero days to address and patch the vulnerability. Zero-day exploits (actual software that uses a security hole to carry out an attack) are used or shared by attackers before the developer of the target software knows about the vulnerability.

Tuesday, September 4, 2012

Change MAC Address In BackTrack



For changing the MAC Address of your network adapter , first you need to choose the adapter.
1. run the terminal, type ifconfig.
2. In my case i want to change the Ethernet MAC address so eth0.


3. now we have to disable the network adapter, so run ifconfig eth0 down.
4. run  macchanger --mac 00:11:22:33:44:55 eth0 . it will change your mac address to the new mac that marked in red. you can
5.  ifcofig eth0 up   will enable your adapter.

Now your mac address changed successfully.

more details about this command:
-r switch will generate a random mac address
-l  will show the list of all known vendors.

Sunday, September 2, 2012

"Dennis Ritchie" Inventor of C Programming Language and CoCreator of Unix

Dennis Ritchie(1941-2011)
Dennis MacAlistair Ritchie was an American computer scientist, He created the C programming language and, with long-time colleague Ken Thompson, the Unix operating system.Ritchie and Thompson received the Turing Award from the ACM in 1983,the Hamming Medal from the IEEE in 1990 and the National Medal of Technology from President Clinton in 1999. Ritchie was the head of Lucent Technologies System Software Research Department when he retired in 2007. He was the 'R' in K&R C and commonly known by his username dmr.


Ritchie graduated from Harvard University with degrees in physics and applied mathematics. In 1967, he began working at the Bell Labs Computing Sciences Research Center, and in 1968, he received a PhD from Harvard under the supervision of Patrick C. Fischer, his doctoral dissertation being "Program Structure and Computational Complexity".

Ritchie was found dead on October 12, 2011, at the age of 70 at his home in Berkeley Heights, New Jersey.His death came a week after Steve Jobs', but did not receive as much media coverage.


RIP Dennis Ritchie.

refrence: http://en.wikipedia.org/wiki/Dennis_Ritchie

Download Youtube Videos With Easy Youtube Video Downloader


If you need to download a video from YouTube don't go for free software's that are full of advertise and bugs some of them even not working. this website will give you an Add-On that you can install on your browser(Firefox, Chrome, Internet Explorer, Opera) and easily and without hassle. just by clicking one button your download will  start. This software is free!
My browser is Firefox and i install "Easy Youtube Video Downloader" from the same site, this Add-On add a DOWNLOAD button under the video. By clicking on download video depends on the quality of original video it will show the available options for download Video or Audio of that video.
It can download Video in FLV & MP4 formats, Audio in Mp3,AAC and M4A formats.
if the source video is in HD quality then you will see the HD option as well.


How to Generate a QR Code For Yourself


You can generate a QR code for your website URL , Youtube Video, Your Address, CellPhone Number & ...
QR code let users and visitors easily access to your data just by scanning the code by a scanner, nowadays there are plenty of mobile application that help you to scan and see the value of the QR Code.One of the most famous and free Bracode Scanner app for Android is BarcodeScanner.
For generating your own QR Code Go to GOQR.ME and Choose your content type (text, URL , Call , Sms , Vcard) then enter your value and adjust the size of QR Code and click Download .


 If you want to know more about QR code history read the below paragraph:
QR Code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional code) first designed for the automotive industry. More recently, the system has become popular outside the industry due to its fast readability and large storage capacity compared to standard UPC barcodes. The code consists of black modules (square dots) arranged in a square pattern on a white background. The information encoded can be made up of four standardized kinds ("modes") of data (numeric, alphanumeric, byte/binary, Kanji), or through supported extensions, virtually any kind of data.


refrence:http://en.wikipedia.org/wiki/QR_code

Getting Mysql Auto Increment ID After Insert


I usually put the ID field of my table in MYSQL to Auto Increment , It will generate a unique id for the ID field in the row and i use the ID as primary key.
So those people use this might need the value of auto generated number after doing the insert! The mysql_insert_id will return the value of ID generated by AutoIncerement .

!!! Remember to run this command immediately after the insert command because it return the last inserted id that generated by auto inc.
!!! In case of fail in insert command it will return 0.

Example:

<?php
$conn = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$conn) {
    die('Could not connect: ' . mysql_error());
}
mysql_select_db('mydb');

mysql_query("INSERT INTO mytable (name) values ('root25.com')");
echo("Last inserted record has id %d\n", mysql_insert_id());
?>

Lenovo Ideapad y480 Hardware Compatibility with Linux BackTrack 5 R2


You might planned to install BackTrack Linux on your Lenovo Ideapad Y480, but you are not sure if your hardware is compatible with it or not! So this is my experience , it will help you to decide.

These are my hardware infromation from Windows 7( I shared them because the possiblity is high that your laptop comes with other brands and models of parts) :

Bluetooth: Atheros AR3011 V 3.0
HDD: ST500LM012
Display Adapter 01: Intel HD Graphics 4000
Display Adapter 02: Nvidia Geforce GT 650M
Imaging Device: Lenovo Easy Camera
Memory Technology Driver: Jmicron..
Mice: Lenovo Pointing Device
Lan: Atheros AR8161/8165
Wifi: Atheros AR 9285
Sound: RealTek High Def Audio
___________________________
After installing backtrack everything work fine. had a problem with volume controller that i fix it and this is the article How to fix volume controller problem in BackTrack 5 R2 .
the other problem was that the Wicd manager can not work with the LAN its possible that it cannot recognize the LAN card. anyway i need to use VPN so i just the install "Network Manager" and network manager recognize the LAN . so the LAN problem is already solved! you can read more about it here How to install Network Manager In BackTrack 5 Gnome .

These are the results of running lsusb , lspci and hwinfo commands on my backtrack 5. but remember i have 1 wireless mouse attached and TP-Link TL-WN821N is pointing to my external wireless card.

root@bt:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287]
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 5986:0296 Acer, Inc
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0cf3:3002 Atheros Communications, Inc.
Bus 001 Device 003: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@bt:~# lspci
00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Device 0166 (rev 09)
00:14.0 USB Controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04)
00:1a.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation Panther Point High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 4 (rev c4)
00:1d.0 USB Controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation Panther Point 4 port SATA IDE Controller (rev 04)
00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation Panther Point 2 port SATA IDE Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation Device 0fd1 (rev a1)
02:00.0 Ethernet controller: Atheros Communications Device 1091 (rev 08)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
04:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
04:00.3 System peripheral: JMicron Technology Corp. MS Host Controller (rev 30)
04:00.4 System peripheral: JMicron Technology Corp. xD Host Controller (rev 30)


root@bt:~# hwinfo
01: None 00.0: 10105 BIOS
  [Created at bios.190]
  Unique ID: rdCR.lZF+r4EgHp4
  Hardware Class: bios
  BIOS Keyboard LED Status:
    Scroll Lock: off
    Num Lock: off
    Caps Lock: off
  Base Memory: 630 kB
  PnP BIOS: SST2400
  MP spec rev 1.4 info:
    OEM id: "Insyde"
    Product id: "Calpella"
    1 CPUs (0 disabled)
  BIOS32 Service Directory Entry: 0xef725
  SMBIOS Version: 2.7
  BIOS Info: #0

Install Network Manager on BackTrack 5


In this article i will show you how to install  network-manager-gnome on BackTrack 5. it's a tool that help you to config LAN , WiFi and VPN in graphical mode.

  1.  open the terminal and run below commands
  2.  apt-get install network-manager-gnome 
  3.  cp /etc/network/interfaces{,.backup}
  4.  echo ""auto lo"" > /etc/network/interfaces 
  5.  echo ""iface lo inet loopback"" >> /etc/network/interfaces 
  6.  service network-manager start 
  7.  nm-applet& 
  8. restart the machine

Saturday, September 1, 2012

Fix Volume Controller Problem In BackTrack 5


In Linux BackTrack 5 Gnome you might face this problem, that the volume controller don't work properly or when you increase the volume the volume is to low. Also if you try to go to Sound Preferences  it will keep showing "waiting for sound system to respond".

To fix this problem just follow these steps:
  1. From menu go to System > Preferences > Startup Applications
  2. Click on Add .
  3. Enter a name "Fix Audio".
  4. in command filed type in /usr/bin/pulseaudio
  5. Click Add then click close.
  6. reboot your machine.
The problem should be solved!



refrence: eGuru

Social Networks Sharing