~ git useful command ~

Post on (2019.05.17) |git | No Comments
#create git
git --bare init

#List branch
git branch

#create Branch
git branch new-branch

#del branch
git branch -D new-branch

~ 掃ipa內的framework ~

Post on (2019.05.16) |ios, xcode | No Comments

xxx.ipa => xxx.zip
unzip
otool -L xxx.app/xxx

1)有無手機上網
2)bundle id 岩唔岩
3)in-app purchase 有無填
4)in-app purchase item 有無tick Cleared for Sale
5)itune connect account <agreement, tax, banking> paid apps agreement 是否在active狀態

Option Click the file and it will open to assistant editor side

~ kali setup remote desktop ~

Post on (2019.03.18) |kali | No Comments

apt-get install xrdp
service xrdp start
update-rc.d xrdp enable

apt-get remove gnome-core
apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base
update-alternatives –config x-session-manager

nano /etc/xrdp/xrdp.ini
max_bpp=32改成max_bpp=16

server side setting

insert client ip


centos client side setting

yum install nfs-utils nfs-utils-lib
mkdir -p /mnt/nfs/home
mount {serverIP}:/home /mnt/nfs/home

checking the mounting
df -h

add startup script
vi /etc/fstab
{serverIP}:/home /mnt/nfs/home nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0

if Router Subnet 192.222.222.0
wget https://git.io/vpnsetup-centos -O vpnsetup.sh && sudo sh vpnsetup.sh

nano /etc/ipsec.conf

virtual-private=%v4:10.0.0.0/8,%v4:192.222.222.0/16,%v4:172.16.0.0/12,%v4:!192.222.222.0/24,%v4:!192.222.222.0/24

rightaddresspool=192.222.222.10-192.222.222.20

nano /etc/xl2tpd/xl2tpd.conf

ip range = 192.222.222.10-192.222.222.20
local ip = 192.222.222.2

iptables -t nat -A POSTROUTING -s 192.222.222.0/24 -o eth0 -j MASQUERADE
ip6tables-save

=============
Router Port forward 1701,500,4500 to vpn server

# wget -qO- http://freegeoip.net/json/
{“ip”:”8.8.8.8″,”country_code”:”HK”,”country_name”:”Hong Kong”,”region_code”:””,”region_name”:””,”city”:”San Po Kong”,”zip_code”:””,”time_zone”:”Asia/Hong_Kong”,”latitude”:11.11,”longitude”:11.11,”metro_code”:0}

# wget -qO- http://freegeoip.net/json/ | grep -Po ‘(?<=”ip”:”)[^”]*’
8.8.8.8

Next Page »
晴晴兔的少女回憶 =3=~ All rights reserved.