How to run Typesafe activator ui from terminal:
This tutorial is mainly shortcuts :)
A. Start Acitvator UI
1. open terminal
2. $cd /Users/andres/Development/Activator/activator-1.2.12
3. $open activator
->Now activator ui running on http://127.0.0.1:8888/
B. Now start mongoDB
1. open terminal
2. $ sudo mongod
3. enter password
http://docs.mongodb.org/manual/reference/program/mongod/#bin.mongod
-> Now mongodb is running locally
C. Play running: http://localhost:9000/#
Installations:
1. Install node $brew install node
2. Install bower $npm install -g bower
3. Install angular UI Bootstrap: $bower install angular-bootstrap
Reference:
https://typesafe.com/activator/template/modern-web-template
Good tutorial:
http://127.0.0.1:8888/app/modern-web-template/#tutorial/3
Monday, February 23, 2015
Sunday, February 22, 2015
intro to MongoDB
Installation
Update homebrew:
$brew updateInstall MongoDB binaries:
$brew install mongodbRun MongoDB
$sudo mkdir -p /data/db //enter passwordStart:
$sudo mongodRemove:
$brew uninstall mongodb
Start Mongo:
$mongo
$show dbs
http://docs.mongodb.org/manual/reference/mongo-shell/
Reference:
http://docs.mongodb.org/manual/reference/program/mongod/#bin.mongod
https://www.youtube.com/watch?v=_rAPWkRqOP4
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/
See Mongo data, insert, update, remove, find:
1. Open terminal and type below commands
$mongo
$shows dbs
$use NameOfDBs
$show collections
>users
$db.users.find()
Commands:
Query commands reference:
Examples:
Insert
> db.users.insert({"age" : "333", "firstName" : "iOS", "lastName" : "testing", "active" : true })
Update
> db.users.update({lastName: "Doe"})
Delete
> db.users.remove({lastName: "Doe"})
Find
> db.users.find({lastName: "11"})
> db.users.find({lastName: "11"}){ "_id" : ObjectId("54ea92ce5d479d97c791df10"), "age" : 21, "firstName" : "Andres", "lastName" : "11", "active" : true }{ "_id" : ObjectId("54ead8235d479d97c791df11"), "age" : 21, "firstName" : "Nico", "lastName" : "11", "active" : true }{ "_id" : ObjectId("54efed3eb293b0b6d0aa208d"), "age" : 21, "firstName" : "Marco", "lastName" : "11", "active" : true }>
Kill MongoDB:
1. Open terminal and type below commands
$pgrep mongo
584
$kill 584
Refrerence:
http://docs.mongodb.org/manual/tutorial/manage-mongodb-processes/
Done :)
Tuesday, February 17, 2015
"Snoop-it" setup iOS Pentesting tool
Getting Started:
- Add the Cydia repository repo.nesolabs.de and install the provided Snoop-it package
- Go to the "Manage" Tab in Cydia
- Click the "Edit" button
- Click the "Add" button
- Enter the URL http://repo.nesolabs.de/ and click the "Add Source" button
- After Cydia finished updating, click the "Return to Cydia" button
- Choose the new repository "NESO Security Labs GmbH"
- Choose "Snoop-it"
- Click the "Install" button
- Click the "Confirm" button
- Now device will reboot
- Now the Snoop-it app will appear in your SpringBoard.
- Using the Snoop-it Configuration App, please select the Apps (System/Cydia/AppStore) to analyze
- Adjust some Snoop-it settings (like e.g. the listening port of the web interface, authentication, tracing etc.)
- Run the selected App & point your browser to the Snoop-it web interface.
Now you can see whats going on your app
coming soon...
References:
https://www.youtube.com/watch?v=NEmV0J02O4k
https://code.google.com/p/snoop-it/wiki/GettingStarted
http://resources.infosecinstitute.com/ios-application-security-part-9-analyzing-security-of-ios-applications-using-snoop-it/
http://www.sectechno.com/snoop-it-tool-to-assist-security-assessments-and-dynamic-analysis-of-ios-apps/
Thursday, December 11, 2014
How to install Kali Linux on A Raspberry Pi (with Mac)
Work in Progress
Reference:
https://www.youtube.com/watch?v=dlS0ypsWgWA
Reference:
https://www.youtube.com/watch?v=dlS0ypsWgWA
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
Subscribe to:
Posts (Atom)





