Work in Progress
Reference:
https://www.youtube.com/watch?v=dlS0ypsWgWA
Thursday, December 11, 2014
Raspberry Pi running Kali Linux, how to setup wifi (Edimax- Realtek RTL8188CUS)
1) Turn on raspberry pi
2) Insert edimax card
In the terminal type command
$lsusb
it will display usb devices connected
Edimx Technology ... EW-7811Un 802.11n [Realtek RTL8188CUS]
3)Enable wlan0 network interface
$sudo nano /etc/network/interfaces
Should be like this:
auto lo
iface lo inet loopback
iface ethc0 inet dhcp
Add the following to interfaces.
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "YourNetworkName"
wpa-psk "YourPassword"
4) Disconnect network.
5) Turn Raspberry Pi off and on. (unplug and plug power cable)
Done!
when device reboots.
login$ root
password$ toor
Type
$ifconfig
And it will show that you are connected to wifi :)
Reference:
http://pen-testing-lab.blogspot.com/2013/09/raspberry-pi-and-nano-usb-wifi-ew.html
http://www.suntimebox.com/raspberry-pi-tutorial-course/week-3/day2-1-wireless-network-setup/
http://www.maketecheasier.com/setup-wifi-on-raspberry-pi/
https://www.youtube.com/watch?v=oGbDawnqbP4
2) Insert edimax card
In the terminal type command
$lsusb
it will display usb devices connected
Edimx Technology ... EW-7811Un 802.11n [Realtek RTL8188CUS]
3)Enable wlan0 network interface
$sudo nano /etc/network/interfaces
Should be like this:
auto lo
iface lo inet loopback
iface ethc0 inet dhcp
Add the following to interfaces.
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "YourNetworkName"
wpa-psk "YourPassword"
4) Disconnect network.
5) Turn Raspberry Pi off and on. (unplug and plug power cable)
Done!
when device reboots.
login$ root
password$ toor
Type
$ifconfig
And it will show that you are connected to wifi :)
Reference:
http://pen-testing-lab.blogspot.com/2013/09/raspberry-pi-and-nano-usb-wifi-ew.html
http://www.suntimebox.com/raspberry-pi-tutorial-course/week-3/day2-1-wireless-network-setup/
http://www.maketecheasier.com/setup-wifi-on-raspberry-pi/
https://www.youtube.com/watch?v=oGbDawnqbP4
Monday, October 6, 2014
How to make Ubuntu VM full screen with Virtual Box.
After installing Virtual Box and Ubuntu Desktop. The VM screen by default is small, below I will show you how to make the screen bigger.
1. Go to "Devices" tab.
2. Select last option "Insert Guest Additions CD image", then select "Run", enter your VM password when prompt.
3. Restart VM.
Now you will noticed the VM supports full screen.
1. Go to "Devices" tab.
2. Select last option "Insert Guest Additions CD image", then select "Run", enter your VM password when prompt.
3. Restart VM.
Now you will noticed the VM supports full screen.
Shared folder from Mac to Virtual Box Ubuntu VM
1. In your Ubuntu VM, go to "Devices" tab -> select "Shared Folders".
2. Select the folder from your Mac that you want to share with the VM (Virtual Machine).
3. Select Ok.
4. Now open the Terminal, and type this command:
4. Restart VM.
5. Now go to: /File System/media/(shared folder is here)
All done. enjoy :-)
Reference
2. Select the folder from your Mac that you want to share with the VM (Virtual Machine).
3. Select Ok.
4. Now open the Terminal, and type this command:
$sudo adduser USERNAME vboxsf
4. Restart VM.
5. Now go to: /File System/media/(shared folder is here)
All done. enjoy :-)
Reference
Monday, September 29, 2014
Friday, September 26, 2014
How to make app icon for Android and iOS App (very simple)
1. Go to this link App icon
2. Drag and drop photo of you icon
3. Enter your email, check your email and download the zip file with the icons.
2. Drag and drop photo of you icon
3. Enter your email, check your email and download the zip file with the icons.
How to create an Scala Play 2 project (Mac)
Open terminal and enter below commands. enjoy!
1. Install brew.
a. Create new Play project $ activator new
b. Select Scala $4
c. Enter name of project
(commands shown below)
1. To run Play App.
a. open terminal and got o the project /directory
b. Enter command:
$activator
c. Then enter command:
$run
If everything is working fine; you will see the below terminal output:
Now your Play app is up and running.
To see the app running go to: http://localhost:9000/
This is to get you started. Good luck :-)
References:
Play 2 Framework
How to use Play Console
1. Install brew.
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Install Play 2.$brew install typesafe-activator3. Choose a /directory to create your first play project.
a. Create new Play project $ activator new
b. Select Scala $4
c. Enter name of project
(commands shown below)
2. Open project UI. Go to project /directory and enter command below. It will open project in browser UI.USER:temp vhome$ activator newFetching the latest list of templates...Browse the list of templates: http://typesafe.com/activator/templatesChoose from these featured templates or enter a template name:1) minimal-java2) minimal-scala3) play-java4) play-scala(hit tab to see a list of all templates)> 4Enter a name for your application (just press enter for 'play-scala')> Hello-Play-appOK, application "Hello-Play-app" is being created using the "play-scala" template.
/../Hello-Play-app/$ activator ui
Wait few seconds then you will see below:1. To run Play App.
a. open terminal and got o the project /directory
b. Enter command:
$activator
c. Then enter command:
$run
If everything is working fine; you will see the below terminal output:
Now your Play app is up and running.
To see the app running go to: http://localhost:9000/
This is to get you started. Good luck :-)
References:
Play 2 Framework
How to use Play Console
Wednesday, September 24, 2014
How to install Homebrew in Mac (10.9.+)
1. Open terminal, copy and paste below commnad:
$brew install wget
$brew install sbt
$brew install scala
$brew install git
(install play)
List applications installed by homebrew:
Reference:
http://coolestguidesontheplanet.com/setting-up-os-x-mavericks-and-homebrew/
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Update Homebrew:$brew updateInstall application:
$brew install <application-name>
Example; Install wget using Homebrew:$brew install wget
$brew install sbt
$brew install scala
$brew install git
(install play)
$brew install typesafe-activator
List applications installed by homebrew:
$brew listRemove application:
$brew remove <application-name>
Check for issues:$brew doctorWhat you can do with Homebrew:
$man brew
Reference:
http://coolestguidesontheplanet.com/setting-up-os-x-mavericks-and-homebrew/
Tuesday, September 23, 2014
Python command to format JSON data to pretty JSON
I tested this command only on Mac OSx.
1. Open terminal.
2. Choose file with messy json data.
$cat music.json | python -mjson.tool
Monday, September 22, 2014
Getting started with Kali linux
I found this reading reddit..
http://www.reddit.com/r/HowToHack/comments/29dnej/cool_stuff_to_do_with_kali_linux/
With this tutorials you will learn how to use linux commands and more.
Wargames:
http://overthewire.org/wargames/bandit/bandit1.html
Solutions:
http://rundata.wordpress.com/2013/03/21/overthewire-bandit-wargame-solutions-1-24/
YOU NEED TO READ CAREFULLY AND FOLLOW THE INSTRUCTIONS :-)
http://www.reddit.com/r/HowToHack/comments/29dnej/cool_stuff_to_do_with_kali_linux/
With this tutorials you will learn how to use linux commands and more.
Wargames:
http://overthewire.org/wargames/bandit/bandit1.html
Solutions:
http://rundata.wordpress.com/2013/03/21/overthewire-bandit-wargame-solutions-1-24/
YOU NEED TO READ CAREFULLY AND FOLLOW THE INSTRUCTIONS :-)
JNI tutorial for Mac OSx 10.9.4
JNI info
1. Install Eclipse IDE
2. Create new project
3. New class Hello.java (copy and paste code below)
public class Hello {
public native int add(int a, int b);
private native void sayHello();
public static void main(String [] args)
{
System.out.println(new Hello().add(34,50));
new Hello().sayHello();
}
static {
System.loadLibrary("hello");
}
}
4. Open terminal. Go to file /dir. Enter below commands:
$javac Hello.java (compiles)
$javah -jni -classpath . Hello
The above command generates your .h headers files from the Java.
5. Now create file "hello.c" copy and paste code below:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class Hello */
#ifndef _Included_Hello
#define _Included_Hello
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: Hello
* Method: add
* Signature: (II)I
*/
JNIEXPORT jint JNICALL Java_Hello_add
(JNIEnv *, jobject, jint, jint);
/*
* Class: Hello
* Method: sayHello
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_Hello_sayHello
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
6. Now enter following commands
$gcc -dynamiclib hello.c
-I/System/Library/Frameworks/JavaVM.framework/Headers -o libhello.dylib
$cp libhello.dylib /Library/Java//Extensions
$java -cp . Hello
Output:
84
Hello World!
Subscribe to:
Posts (Atom)