forked from MentalOutlaw/deploygentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_software.sh
More file actions
executable file
·146 lines (138 loc) · 4.59 KB
/
install_software.sh
File metadata and controls
executable file
·146 lines (138 loc) · 4.59 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#!/bin/bash
#TODO
#there are some situations in which the deploygentoo-master folder will be named deploygentoo
#make this script work with that folder name aswell
check_file_exists () {
file=$1
if [ -e $file ]; then
exists=true
else
printf "%s doesn't exist\n" $file
exists=false
$2
fi
}
check_dir_exists () {
file=$1
if [ -d $file ]; then
exists=true
else
printf "%s doesn't exist\n" $file
exists=false
$2
fi
}
if [ "$EUID" -ne 0 ]
then printf "The script has to be run as root.\n"
exit
fi
printf "This script is designed for gentoo linux and it will not work in any other OS\n"
printf "Installing dependencies listed in dependencies.txt...\n"
SOFTWARE="`sed -e 's/#.*$//' -e '/^$/d' software.txt | tr '\n' ' '`"
##TODO remove this comment and uncomment the 4 lines below it
emaint -a sync
#
#This is unnecessary?
#cd /etc/layman
#git clone https://github.com/gentoo/libressl
cd /var/lib/layman
layman -S
yes | layman -a steam-overlay
cd libressl/dev-qt/qtnetwork
ebuild qtnetwork-5.15.0.ebuild manifest
emerge dev-qt/qtnetwork
emerge games-util/steam-launcher games-util/steam-meta
rm -rf /var/lib/layman/lto-overlay/sys-config/ltoize/files/patches/media-libs/x264/*
emerge --autounmask-continue -q $SOFTWARE
#layman -a pentoo
#installs software from pentoo overlay
#this part doesn't work for some reason, maybe because of the new kernel?
#TODO fix it!!!
#A potential fix is to just intall from the pentoo overlay, but this requires testing.
#cd $script_home
#check_dir_exists /usr/local/portage/net-analyzer/responder
#if $exists; then
# printf "/usr/local/portage/net-analyzer/responder already exists\n"
#else
# mkdir -p /usr/local/portage/net-analyzer/responder
#fi
#check_dir_exists /usr/local/portage/dev-db/sqlmap
#if $exists; then
# printf "/usr/local/portage/cross-x86_64-w64-mingw32 exists\n"
#else
# mkdir -p /usr/local/portage/dev-db/sqlmap
#fi
#check_dir_exists /usr/local/portage/dev-python/impacket
#if $exists; then
# printf "/usr/local/portage/dev-python/impacket already exists\n"
#else
# mkdir -p /usr/local/portage/dev-python/impacket
#fi
#check_dir_exists /usr/local/portage/dev-python/ldapdomaindump
#if $exists; then
# printf "/usr/local/portage/dev-python/ldapdomaindump exists\n"
#else
# mkdir -p /usr/local/portage/dev-python/ldapdomaindump
#fi
#check_dir_exists /usr/local/portage/dev-python/pycryptodomex
#if $exists; then
# printf "/usr/local/portage/dev-python/pycryptodomex already exists\n"
#else
# mkdir -p /usr/local/portage/dev-python/pycryptodomex
#fi
#check_dir_exists /usr/local/portage/net-analyzer/smbmap
#if $exists; then
# printf "/usr/local/portage/net-analyzer/smbmap\n"
#else
# mkdir -p /usr/local/portage/net-analyzer/smbmap
#fi
#mkdir -p /usr/local/portage/cross-x86_64-w64-mingw32
#mkdir -p /usr/local/portage/dev-python/impacket
#mkdir -p /usr/local/portage/dev-python/ldapdomaindump
#mkdir -p /usr/local/portage/dev-python/pycryptodomex
#mkdir -p /usr/local/portage/net-analyzer/smbmap
#mv ebuilds/responder-2.3.4.0-r1.ebuild /usr/local/portage/net-analyzer/responder/
#mv ebuilds/ldapdomaindump-0.9.1.ebuild /usr/local/portage/dev-python/ldapdomaindump
#mv ebuilds/impacket-0.9.20.ebuild /usr/local/portage/dev-python/impacket
#mv ebuilds/pycryptodomex-3.9.4.ebuild /usr/local/portage/dev-python/pycryptodomex
#mv ebuilds/smbmap-1.1.0-r1.ebuild /usr/local/portage/net-analyzer/smbmap
#
#cd /usr/local/portage/net-analyzer/responder
#ebuild responder-2.3.4.0-r1.ebuild manifest
#emerge --autounmask-write net-analyzer/responder
#cd /usr/local/portage/dev-python/ldapdomaindump
#ebuild ldapdomaindump-0.9.1.ebuild manifest
#emerge --autounmask-write dev-python/ldapdomaindump
#cd /usr/local/portage/dev-python/pycryptodomex
#ebuild pycryptodomex-3.9.4.ebuild manifest
#emerge --autounmask-write dev-python/pycryptodomex
#cd /usr/local/portage/dev-python/impacket
#ebuild impacket-0.9.20.ebuild manifest
#emerge --autounmask-write dev-python/impacket
#cd /usr/local/portage/net-analyzer/smbmap
#ebuild smbmap-1.1.0-r1.ebuild manifest
#emerge --autounmask-write net-analyzer/smbmap
cd $script_home
cd ..
#check_dir_exists Tools
#if $exists; then
# printf "Tools directory already exists\n"
#else
# mkdir Tools
#fi
#cd Tools
#git clone https://github.com/magnumripper/JohnTheRipper.git
#cd src
#./configure && make -s clean && make -sj3
#cd ..
#mv run/ ../john
#cd ..
#rm -rf JohnTheRipper
#git clone https://github.com/sqlmapproject/sqlmap.git
#TODO figure out what's necessary to get this to work
#emerge sys-devel/crossdev
#crossdev --target x86_64-w64-mingw32
printf "software installed\n"
#chmod + x install_wordlist.sh
#sh install_wordlist.sh
#printf "enumeration word list installed in /usr/share/wordlist\n"