Search Whitehat Blog

Friday 3 June 2016

Unhide Files In Flash Disk(Solved)

Hello my name is Joe, I have my project in my flash and I cant see both files when I open on windows,Help!


I have had a lot of people complaining of the same issue where you happen to have files in your flash disk or memory card and you cant access or see . This is brought about by a background running process, mostly a visual basic malicious program (itsname.vbs).

Without overlooking on the threats , it can also be experienced if your system file settings is not in 'Un-hide all items' mode. (Check it in file properties in Windows OS)


Bellow is a method to solve out the culprit.


1. Open note pad and  paste this code bellow (In blue Only) .

@echo off
attrib -s -h -r /s /d
cls
exit

2.Click File and click Save As...
3.Save it as unhide.bat
4. Send the file to your defective flash disk.
5.Open your flash and run the unhide.bat file.
6.Wait for a while then re insert your disk.

Now access your flash disk and open the folder .Trash -There you go!


Thats all. Karibu.

Monday 25 January 2016

Desktop to smartphone website redirection code

How to detect and redirect to a mobile site in PHP

With multiple versions of a site now common, it is important to redirect to the appropriate version depending on the type of device the user is using. For example if a user is viewing a website on a mobile device, we should be able to redirect to a mobile friendly version of our site. For this purpose we should be able to detect the device the user is using and act accordingly. This is where mobile detection libraries come in handy.



Case 1 : Redirecting a site to a mobile version

Say we have a normal website that we need to redirect to a mobile version if viewed from a mobile device. All the code required for mobile detection is in a single file ‘Mobile_Detect.php’, which we can include in our web pages or in the primary index file. To simplify discussion let us assume you have a website ‘example1.com’ with a single index file, and need to redirect to ‘mobile.example1.com’ if a mobile device is detected. We need to put the following in the header of the index file of ‘example1.com’.

/* Change path info depending on your file locations */
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
 
if($detect->isMobile()) {
    header('Location: http://mobile.example1.com/');
    exit;
}

The above code will now redirect the main site to a mobile version if viewed from a mobile. Some other use cases to redirect are given below.

// Any tablet device.
if( $detect->isTablet()) {
 
}
 
// Exclude tablets.
if( $detect->isMobile() && !$detect->isTablet()) {
 
}
 
// Check for a specific platform with the help of the magic methods:
if( $detect->isiOS()) {
 
}
 
if( $detect->isAndroidOS()) {
 
}
 
if( $detect->isWindowsPhoneOS()) {
 
}

Case 2: Loading different resources depending on the device

We can load or modify existing content based on the users device profile. For example we could load a different CSS for a mobile or a tablet.

$detect = new Mobile_Detect;
 
if($detect->isMobile() || $detect->isTablet()) {
    echo "<link rel='stylesheet' href='mobile.css type='text/css' />";
} else {
    echo "<link rel='stylesheet' href='style.css type='text/css' />";
}

Note that mobile detection is a moving platform, and as new devices are introduced you will need to update the library with new versions. Also, as the library relies on HTTP headers to sniff the device signature, it could sometimes give incorrect results if the headers are tampered with.

Sunday 20 September 2015

Blue light filter Android.

Blue light, is harmful rays to our vision.Continuous exposure to this kind of rays damages our eye sight since this rays damages the eye's parts such as the retina.
Smartphones normally emit this on their screens. You can reduce this by adjusting brightness some few  tweaks to your screen.  See picture samples. 
Even thought we have screen brightness in our phones, it doesn't go as far as this app does. Giving an example, if your system brightness percentage is 50, then this software will base its results from the system percentage.  Further more its saves you from insomnia and strain. 

It is easy to use, once click to start and end, nice interface ,tiny and can run in several devices.

Eye Care in your Smartphone or Tablet
This app works on most smartphones such as
Samsung Galaxy, HTC ONE Xperia and so on.
It also works on tablets such as Nexus 7, Nexus 10,
ASUS MeMO Pad, Acer ICONIA and more!.

Picture credits: screenshots .



Posted via Multi Telecoms

Saturday 19 September 2015

Smart development for android.

Many of us get so exited when they find what they have been looking for very applicable in finger tips . For a while I was thinking it could save me a lot of time, say an caught up in a traffic Jam or waiting in line, to start or continue with my Java coding and development on hand. Yes, maybe on tablet or smartphone.

AIDE is an integrated development environment
(IDE) for developing real Android Apps directly on
your Android device. AIDE supports the full edit-
compile-run cycle: write code with the feature rich
editor offering advanced features like code completion, real-time error checking, refactoring and smart code navigation, and run your App with a single click.
AIDE will turn your Android tablet with keyboard
into a real development box.

Just like Net Beans you can tailor your java codes ,run ,debug and compile to any machine code. Some features includes..

- Saving files in larger projects (5+ Java files)
- Direct run without user prompt on rooted devices
- Git push/commit/branch
- APK publishing
- Offline SDK documentation
- Some customization optionsA brief summary of
features...Edit-compile-run cycle:
- Create a sample App with a single click
- Build Java/Xml Apps
- Build C/C++ NDK Apps
- Run your App with a single click
- No root access required
- Incremental compilation for fast build times
- Uses Eclipse .classpath project format for
compatibility
- Open default Android Studio projects
- Integrated LogCat viewerReal-time error
checking:
- Real time error analyis throughout the whole
project as you type
- Automatic Quick-Fixes for many errorsUI
design:
- Preview XML layouts
- Jump from view in the designer to the XML
elementRefactoring:
- Rename
- Inline variable
- Introduce variable
- Extract methodCode:
- Code formatter
- Organize imports
- Out-comment code
- Create setters/getters/constructors from fieldsCode
navigation:
- Goto defintion
- Find usages
- Goto symbol
- Goto classEditor:
- Very fast editor even with large files
- Code completion for Java and Android XML
- Android online help directly from the code
- Syntax highlighting for Java and XML
- Unlimited Undo/Redo
- Pinch zoom
- Smart expand selection
- Keyboard support with configurable keybindings
- UI optimized for small screens to show as much
code/content as possibleFilebrowser:
- Built-in file manager with the most common
features: Rename, delete, create file or folder
- Dropbox integration
- Git integration with Commit/Dicard/Push/Pull



Posted via Multi Telecoms

Smart development for android.

Many of us get so exited when they find what they have been looking for very applicable in finger tips . For a while I was thinking it could save me a lot of time, say an caught up in a traffic Jam or waiting in line, to start or continue with my Java coding and development on hand. Yes, maybe on tablet or smartphone.

AIDE is an integrated development environment
(IDE) for developing real Android Apps directly on
your Android device. AIDE supports the full edit-
compile-run cycle: write code with the feature rich
editor offering advanced features like code completion, real-time error checking, refactoring and smart code navigation, and run your App with a single click.
AIDE will turn your Android tablet with keyboard
into a real development box.

Just like Net Beans you can tailor your java codes ,run ,debug and compile to any machine code. Some features includes..

- Saving files in larger projects (5+ Java files)
- Direct run without user prompt on rooted devices
- Git push/commit/branch
- APK publishing
- Offline SDK documentation
- Some customization optionsA brief summary of
features...Edit-compile-run cycle:
- Create a sample App with a single click
- Build Java/Xml Apps
- Build C/C++ NDK Apps
- Run your App with a single click
- No root access required
- Incremental compilation for fast build times
- Uses Eclipse .classpath project format for
compatibility
- Open default Android Studio projects
- Integrated LogCat viewerReal-time error
checking:
- Real time error analyis throughout the whole
project as you type
- Automatic Quick-Fixes for many errorsUI
design:
- Preview XML layouts
- Jump from view in the designer to the XML
elementRefactoring:
- Rename
- Inline variable
- Introduce variable
- Extract methodCode:
- Code formatter
- Organize imports
- Out-comment code
- Create setters/getters/constructors from fieldsCode
navigation:
- Goto defintion
- Find usages
- Goto symbol
- Goto classEditor:
- Very fast editor even with large files
- Code completion for Java and Android XML
- Android online help directly from the code
- Syntax highlighting for Java and XML
- Unlimited Undo/Redo
- Pinch zoom
- Smart expand selection
- Keyboard support with configurable keybindings
- UI optimized for small screens to show as much
code/content as possibleFilebrowser:
- Built-in file manager with the most common
features: Rename, delete, create file or folder
- Dropbox integration
- Git integration with Commit/Dicard/Push/Pull



Posted via Multi Telecoms

Wednesday 26 August 2015

Smartphone Torture

Used to brake a car

Samsung launched this flagship galaxy smartphone March this year while IPhone announced their iPhone 6 in September last year. 

This two smartphones have intelligent features that all tech gurus may have thought of.

However, when possessing a pocket giant smartphone and using it in daily life, then it may be bound to hitting the floor - a couple of times. Some accidentally end up dipping in fluids - I haven't mentioned pools, bathroom bowl,  and some use it as a lab test - thats me ��.

Researcher's and enthusiasts

A few critics will ignore the full expense of both of the flagships and beat  or drop it from a height just get the torture comparison and document the experience. 

Now this one is more like a smartphone- mare tale , researchers and enthusiasts may do a lot of tests. For a smartphone you have ever dreamt to have, someone on this earth will burn both to  ashes just to analyze the vulnerability at the time of accidents.

Lets talk about this human  who tortured a mint Iphone 6 and Galaxy s6 to ashes. At what instance will someone want to use an ashed smartphone? No! Wait and at which crazy event can someone throw it in fire?  - and probably claim  warrant?  Haha a drunk friend around a campfire ? Or you drove your girlfriend to nuts ?��

I almost forgot of one who used it to brake a speeding Ferrari, Am so amazed Thank you!



Posted via Multi Telecoms

Wednesday 5 August 2015

New worm threat on Mac OS

New Malicious  threat on Mac

Mac is typically known to be one of the most secured operating systems from the widely known windows and Linux.

Researchers demonstrated that Mac Os can be the most vulnerable since malicious worm  can infect this systems into its firmware level.

This kind of attack can be done via email spoofing and any other red hat techniques since exploit may take place with only a click of a button.

Researchers also stated that this type of vulnerability can be so harming since basic software's and anti malware cannot mock locations to the systems firmware level, eg ROM.

This is the second thunderstrike exploit to target Macs. The first version was corrected with OS X 10.10.2 .This required the hacker to be physically
available to launch  unlike this new remote  infectious malware.

HOWEVER the latest Mac operating system V(10.10.4) is reported to have been elevated



Posted by Ken R.