Tuesday, June 12, 2018

Raspberry Pi Packet Sniffer

1,
SETTING UP A RASPBERRY PI AS AN ACCESS POINT IN A STANDALONE NETWORK (NAT)

tips:

After upgrade, you may need reboot.

After upgrade, you may need update again.

If it says no 'hostapd', make sure upgraded, updated.

If it says iptables can not find table, most likely you didn't reboot after upgrade.

Make sure your previous WiFi deleted/commented from /etc/wpa_supplicant/wpa_supplicant.conf, otherwise your pi will connect to your own WiFi and because the wlan0 been occupied, you can not connect to your pi via wireless.

2,

An HTTP and HTTPS sniffing tool created using a Raspberry Pi

tips:

you can install mitmproxy via apt-get install mitmproxy

make sure you run ./mitm.sh

Friday, June 08, 2018

Working On An iPad Pro For Developers

This is preparation of my new iPad Pro. I'm going to use it for some development work and I collected following information

Thanks to:

Shane Dowling

The iPad Pro as a focused, simple coding machine

***

Working On An iPad Pro For Developers

***

Hey Apple, I Tried The iPad Pro As A Dev Machine. It’s *Almost* Awesome

***

The iPad Pro as main computer for programming



Conclusion:

Local dev: No; Remote Dev: Yes

Tools:

1, VPS - I'll build my own Linux box
options:
DigitalOcean, static IP, better APP to manage;
AWS,  Amazon Cloud9 IDE is perfect to work together;
Linode;
Vulture

2, SSH
Termius - I'm using it, I'm happy with it.
options:
Prompt
Prompt 2
ServerAuditor
vSSH HD
Blink Shell -- worth it

3, Editor
vim - I'm a vim person
options:
GoCoEdit -- sublime text like
Working Copy -- with git client
Coda  -- good for front end dev
Spacemacs -- for Emacs person


4, DB client
mycli


5, Server Environment 
Vagrant - for personal development, I prefer Vagrant
Docker

6, Tips

6.1, For vim,  'Ctrl + ['  equals to 'Esc'
6.2, Screens for vnc
6.3, it is of course definitely possible to connect an external monitor to an IPP with the USB-C connector (or beamer). Either through VGA or HDMI.  Via Lightning to USB Camera Adapter

6.4,
So one thing that might be useful is when you exit your little server to have it automatically shut down so you don’t need to keep remembering to kill the server via the app. If you want to do this without needing to enter a password each time, firstly run this command to start editing the sudoers file.
sudo visudo
Then add this line to allow passwordless access to poweroff commands.
username   ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown
Then create an alias for your user so that when you hit exit, it actually shuts down the machine. Put this in your .bashrc or .zshrc or whatever rc your shell uses.
alias exit=’sudo poweroff’