Posts

Showing posts from February, 2017

How to capture Android traffic throught Wireshark

An option is connect wireshark from your pc to your android throught ssh. You can use sshdroid to enable ssh on your Android. On your computer use the following commands: mkfifo /tmp/remote wireshark -k -i /tmp/remote & ssh root@android_ip "tcpdump -s 0 -U -n -w - not port 22" > /tmp/remote Now you could see you Android traffic Enjoy it!

How to record IP camera video throught RTSP

Some IP webcams requires Quicktime to show the image throught the browser. To get the full URI with the video source, you can get it from a virtual machine with windows throught wireshark like this: rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp To reproduce it with vlc, use this command: vlc "rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp" Probably you should see the first frame as static frame and the following error: Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?) You can install libvdpau-va-gl1 dependencie, but the problem persists. If you prefer to use vlc (if you compile it with hw acceleration), you can enable the option --avcodec-hw vdpau If you don't have vlc with hw acceleration enabled, you can use mvp. To install it, fol

How to configure a Raspberry 3 with a MagicBulb

Image
First, we need to download the official rapsberry image (raspbian Pixel version): wget  http://vx2-downloads.raspberrypi.org/raspbian/images/raspbian-2017-01-10/2017-01-11-raspbian-jessie.zip Now, we need mount the image in a microSD. You can use etcher to automatize the entire proccess: wget https://resin-production-downloads.s3.amazonaws.com/etcher/1.0.0-beta.18/Etcher-1.0.0-beta.18-linux-x64.zip unzip -e Etcher-1.0.0-beta.18-linux-x64.zip ./Etcher-1.0.0-beta.18-linux-x64.AppImage Before placing the microSD in the raspberry, you need enable ssh service. To do this, just create a file called ssh in the boot partition. cd /media/PI_BOOT touch ssh where PI_BOOT is the boot raspberry partition. Use pi as user and raspberry as password to access it throught ssh. Now, we need to install dependencies for magicblue: sudo apt-get install libglib2.0-dev libbluetooth-dev git clone https://github.com/IanHarvey/bluepy.git cd bluepy sudo python setup