Monday, February 23, 2015

SCALA ANGULARJS PLAY MONGO

 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

Sunday, February 22, 2015

intro to MongoDB





Installation
Update homebrew:
$brew update
Install MongoDB binaries:
$brew install mongodb
Run MongoDB
$sudo mkdir -p /data/db //enter password
Start:
$sudo mongod
Remove:
$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:
  1. 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
  2. Now the Snoop-it app will appear in your SpringBoard.
  3. Using the Snoop-it Configuration App, please select the Apps (System/Cydia/AppStore) to analyze
  4. Adjust some Snoop-it settings (like e.g. the listening port of the web interface, authentication, tracing etc.)
  5. Run the selected App & point your browser to the Snoop-it web interface.
Now you can see whats going on your app

How to use:
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/