-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell_aliases.sh
38 lines (30 loc) · 1.35 KB
/
shell_aliases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [[ -e /root/.bash_aliases ]]; then
echo ">>> SKIP: .bash_aliases already exists..."
else
echo ">>> adding aliases..."
# Add your aliases here
#ls
echo "alias ll='ls -lvhAF --file-type --group-directories-first'" >> /root/.bash_aliases
echo "alias lr='ll -R'" >> /root/.bash_aliases
#python web server
echo "alias http-server='python -m SimpleHTTPServer 80'" >> /root/.bash_aliases
echo "alias ftp-server='python -m pyftpdlib -p 21 -w'" >> /root/.bash_aliases
echo "alias tftp-server='service atftpd start'" >> /root/.bash_aliases
echo "alias smb-server='impacket-smbserver FILES .'" >> /root/.bash_aliases
echo "alias webdav-server='davserver -D ./ -n'" >> /root/.bash_aliases
#netcat shortcuts (rlwrap!!!)
echo "alias ncr='rlwrap nc'" >> /root/.bash_aliases
echo "alias ncrl='rlwrap nc -nlvp'" >> /root/.bash_aliases
echo "alias ncl='nc -nlvp'" >> /root/.bash_aliases
#mingw
echo "alias wcc32='i686-w64-mingw32-gcc'" >> /root/.bash_aliases
echo "alias wcc64='x86_64-w64-mingw32-gcc'" >> /root/.bash_aliases
echo "alias wcc32+='i686-w64-mingw32-g++'" >> /root/.bash_aliases
echo "alias wcc64+='x86_64-w64-mingw32-g++'" >> /root/.bash_aliases
echo ">>> sourcing .bash_aliases..."
source /root/.bash_aliases
echo " "
cat /root/.bash_aliases
echo " "
fi