Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Guia privoxy + Tor + Squid3 + AES en KALI LINUX 1.0.9a
- Solo copea y pega!
- ------------------------
- instalacion paquetes
- sudo apt-get install tor privoxy squid3
- ------------------------
- terminando la instalacion instala , gedit
- apt-get install gedit
- -----------------------------------
- Detener procesos
- sudo /etc/init.d/squid3 stop
- sudo /etc/init.d/privoxy stop
- sudo /etc/init.d/tor stop
- -----------------------------
- Configurando tor *
- -----------------------------
- gedit /etc/tor/torrc-0
- SocksBindAddress 127.0.0.1
- SocksPort 10000
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor0
- PidFile /var/run/tor/tor-0.pid
- -----------------------------
- gedit /etc/tor/torrc-1
- SocksBindAddress 127.0.0.1
- SocksPort 10010
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor1
- PidFile /var/run/tor/tor-1.pid
- ----------------------------------
- gedit /etc/tor/torrc-2
- SocksBindAddress 127.0.0.1
- SocksPort 10020
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor2
- PidFile /var/run/tor/tor-2.pid
- ------------------------
- gedit /etc/tor/torrc-3
- SocksBindAddress 127.0.0.1
- SocksPort 10030
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor3
- PidFile /var/run/tor/tor-3.pid
- -------------------------------------------
- gedit /etc/tor/torrc-4
- SocksBindAddress 127.0.0.1
- SocksPort 10040
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor4
- PidFile /var/run/tor/tor-4.pid
- ------------------------------
- gedit /etc/tor/torrc-5
- SocksBindAddress 127.0.0.1
- SocksPort 10050
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor5
- PidFile /var/run/tor/tor-5.pid
- ---------------------------------------
- gedit /etc/tor/torrc-6
- SocksBindAddress 127.0.0.1
- SocksPort 10060
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor6
- PidFile /var/run/tor/tor-6.pid
- ---------------------------------------------------
- gedit /etc/tor/torrc-7
- SocksBindAddress 127.0.0.1
- SocksPort 10070
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor7
- PidFile /var/run/tor/tor-7.pid
- --------------------------------------------
- gedit /etc/tor/torrc-8
- SocksBindAddress 127.0.0.1
- SocksPort 10080
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor8
- PidFile /var/run/tor/tor-8.pid
- --------------------------------
- gedit /etc/tor/torrc-9
- SocksBindAddress 127.0.0.1
- SocksPort 10090
- SocksPolicy accept *
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- RunAsDaemon 1
- User debian-tor
- CircuitBuildTimeout 30
- NumEntryGuards 6
- KeepalivePeriod 60
- NewCircuitPeriod 15
- DataDirectory /var/lib/tor9
- PidFile /var/run/tor/tor-9.pid
- --------------------------------
- Instalacion y permisos / Folders tor
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor0
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor1
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor2
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor3
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor4
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor5
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor6
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor7
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor8
- sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor9
- Crear tor y cambiar permisos
- sudo cp /etc/init.d/tor /etc/init.d/tor.orig
- sudo rm /etc/init.d/tor
- sudo gedit /etc/init.d/tor
- ------------------------------------------
- copear y pegar este codigo
- ------------------------------------------
- #! /bin/bash
- ### BEGIN INIT INFO
- # Provides: tor
- # Required-Start: $local_fs $remote_fs $network $named $time
- # Required-Stop: $local_fs $remote_fs $network $named $time
- # Should-Start: $syslog
- # Should-Stop: $syslog
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Starts The Onion Router daemon processes
- # Description: Start The Onion Router, a TCP overlay
- # network client that provides anonymous
- # transport.
- ### END INIT INFO
- set -e
- PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
- DAEMON=/usr/sbin/tor
- NAME=tor
- DESC="tor daemon"
- CONFDIR=/etc/tor
- TORPIDDIR=/var/run/tor
- TORPID=$TORPIDDIR/tor
- DEFAULTSFILE=/etc/default/$NAME
- WAITFORDAEMON=60
- ARGS="--quiet -f "$CONFDIR/torrc
- # Let's try to figure our some sane defaults:
- if [ -r /proc/sys/fs/file-max ]; then
- system_max=`cat /proc/sys/fs/file-max`
- if [ "$system_max" -gt "80000" ] ; then
- MAX_FILEDESCRIPTORS=32768
- elif [ "$system_max" -gt "40000" ] ; then
- MAX_FILEDESCRIPTORS=16384
- elif [ "$system_max" -gt "10000" ] ; then
- MAX_FILEDESCRIPTORS=8192
- else
- MAX_FILEDESCRIPTORS=1024
- cat << EOF
- Warning: Your system has very few filedescriptors available in total.
- Maybe you should try raising that by adding 'fs.file-max=100000' to your
- /etc/sysctl.conf file. Feel free to pick any number that you deem appropriate.
- Then run 'sysctl -p'. See /proc/sys/fs/file-max for the current value, and
- file-nr in the same directory for how many of those are used at the moment.
- EOF
- fi
- else
- MAX_FILEDESCRIPTORS=8192
- fi
- NICE=""
- test -x $DAEMON || exit 0
- # Include tor defaults if available
- if [ -f $DEFAULTSFILE ] ; then
- . $DEFAULTSFILE
- fi
- wait_for_deaddaemon () {
- pid=$1
- sleep 1
- if test -n "$pid"
- then
- if kill -0 $pid 2>/dev/null
- then
- echo -n "."
- cnt=0
- while kill -0 $pid 2>/dev/null
- do
- cnt=`expr $cnt + 1`
- if [ $cnt -gt $WAITFORDAEMON ]
- then
- echo " FAILED."
- return 1
- fi
- sleep 1
- echo -n "."
- done
- fi
- fi
- return 0
- }
- check_torpiddir () {
- if test ! -d $TORPIDDIR; then
- #echo "There is no $TORPIDDIR directory. Creating one for you."
- mkdir -m 02750 "$TORPIDDIR"
- chown debian-tor:debian-tor "$TORPIDDIR"
- fi
- if test ! -x $TORPIDDIR; then
- echo "Cannot access $TORPIDDIR directory, are you root?" >&2
- exit 1
- fi
- }
- check_config () {
- if ! $DAEMON --verify-config > /dev/null; then
- echo "ABORTED: Tor configuration invalid:" >&2
- $DAEMON --verify-config >&2
- exit 1
- fi
- }
- case "$1" in
- start)
- if [ "$RUN_DAEMON" != "yes" ]; then
- echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
- exit 0
- fi
- if [ -n "$MAX_FILEDESCRIPTORS" ]; then
- echo -n "Raising maximum number of filedescriptors (ulimit -n) to $MAX_FILEDESCRIPTORS"
- if ulimit -n "$MAX_FILEDESCRIPTORS" ; then
- echo "."
- else
- echo ": FAILED."
- fi
- fi
- check_torpiddir
- echo "Starting $DESC: $NAME..."
- check_config
- for c in {0..9}
- do
- start-stop-daemon --start --quiet --oknodo \
- --pidfile $TORPID-$c.pid \
- $NICE \
- --exec $DAEMON -- $ARGS-$c
- echo "$NAME $c done."
- done
- ;;
- stop)
- echo -n "Stopping $DESC: "
- for c in {0..9}
- do
- pid=`cat $TORPID-$c.pid 2>/dev/null` || true
- if test ! -f $TORPID-$c.pid -o -z "$pid"; then
- echo "not running (there is no $TORPID-$c.pid)."
- exit 0
- fi
- if start-stop-daemon --stop --signal INT --quiet --pidfile $TORPID-$c.pid --exec $DAEMON; then
- wait_for_deaddaemon $pid
- echo "$NAME $c stopped."
- elif kill -0 $pid 2>/dev/null
- then
- echo "FAILED (Is $pid not $NAME? Is $DAEMON a different binary now?)."
- else
- echo "FAILED ($DAEMON died: process $pid not running; or permission denied)."
- fi
- done
- ;;
- reload|force-reload)
- for c in {0..9}
- do
- echo -n "Reloading $DESC configuration: "
- pid=`cat $TORPID-$c.pid 2>/dev/null` || true
- if test ! -f $TORPID-$c.pid -o -z "$pid"; then
- echo "not running (there is no $TORPID-$c.pid)."
- exit 0
- fi
- check_config
- if start-stop-daemon --stop --signal 1 --quiet --pidfile $TORPID-$c.pid --exec $DAEMON
- then
- echo "$NAME $c."
- elif kill -0 $pid 2>/dev/null
- then
- echo "FAILED (Is $pid not $NAME? Is $DAEMON a different binary now?)."
- else
- echo "FAILED ($DAEMON died: process $pid not running; or permission denied)."
- fi
- done
- ;;
- restart)
- check_config
- $0 stop
- sleep 1
- $0 start
- ;;
- status)
- for c in {0..9}
- do
- if test ! -r $(dirname $TORPID-$c.pid); then
- echo "cannot read tor PID file"
- exit 4
- fi
- pid=`cat $TORPID-$c.pid 2>/dev/null` || true
- if test ! -f $TORPID-$c.pid -o -z "$pid"; then
- echo "tor is not running"
- exit 3
- fi
- if ps "$pid" >/dev/null 2>&1; then
- echo "tor $c is running"
- else
- echo "tor is not running"
- exit 1
- fi
- done
- exit 0
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|reload|force-reload|status}" >&2
- exit 1
- ;;
- esac
- exit 0
- -------------------------------
- Guarda los cambios
- -------------------------------
- Permisos a tor
- sudo chmod +x /etc/init.d/tor
- ------------------------------
- Agregar a la linea tor "hasta abajo"
- gedit /etc/tor/torrc
- SocksBindAddress 127.0.0.1 # accept connections only from localhost
- AllowUnverifiedNodes middle,rendezvous
- Log notice syslog
- -------------------------------------------
- Inicia tor
- sudo /etc/init.d/tor start
- -------------------------------
- configuracion privoxy
- ----------------------------------------
- gedit /etc/privoxy/config-0
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_0
- listen-address localhost:11000
- forward-socks5 / 127.0.0.1:10000 .
- ---------------------------------------
- gedit /etc/privoxy/config-1
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_1
- listen-address localhost:11010
- forward-socks5 / 127.0.0.1:10010 .
- ---------------------------------------
- gedit /etc/privoxy/config-2
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_2
- listen-address localhost:11020
- forward-socks5 / 127.0.0.1:10020 .
- --------------------------------------
- gedit /etc/privoxy/config-3
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_3
- listen-address localhost:11030
- forward-socks5 / 127.0.0.1:10030 .
- -----------------------------------------
- gedit /etc/privoxy/config-4
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_4
- listen-address localhost:11040
- forward-socks5 / 127.0.0.1:10040 .
- ------------------------------
- gedit /etc/privoxy/config-5
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_5
- listen-address localhost:11050
- forward-socks5 / 127.0.0.1:10050 .
- ----------------------------------
- gedit /etc/privoxy/config-6
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_6
- listen-address localhost:11060
- forward-socks5 / 127.0.0.1:10060 .
- ------------------
- gedit /etc/privoxy/config-7
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_7
- listen-address localhost:11070
- forward-socks5 / 127.0.0.1:10070 .
- -----------------------------
- gedit /etc/privoxy/config-8
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_8
- listen-address localhost:11080
- forward-socks5 / 127.0.0.1:10080 .
- ------------------------------------
- gedit /etc/privoxy/config-9
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action
- actionsfile default.action
- actionsfile user.action
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- logdir /var/log/privoxy_9
- listen-address localhost:11090
- forward-socks5 / 127.0.0.1:10090 .
- ------------------------------------
- instalando folders/ provoxy/
- ----------------------------------
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_0
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_1
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_2
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_3
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_4
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_5
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_6
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_7
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_8
- sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_9
- -----------------------------
- configurando privoxy
- -----------------------------
- sudo cp /etc/init.d/privoxy /etc/init.d/privoxy.orig
- sudo rm /etc/init.d/privoxy
- sudo gedit /etc/init.d/privoxy
- #! /bin/bash
- ### BEGIN INIT INFO
- # Provides: privoxy
- # Required-Start: $local_fs $remote_fs $network $time
- # Required-Stop: $local_fs $remote_fs $network $time
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Privacy enhancing HTTP Proxy
- # Description: Privoxy is a web proxy with advanced filtering
- # capabilities for protecting privacy, filtering
- # web page content, managing cookies, controlling
- # access, and removing ads, banners, pop-ups and
- # other obnoxious Internet junk.
- ### END INIT INFO
- # Author: Roland Rosenfeld <roland@debian.org>
- # Do NOT "set -e"
- # PATH should only include /usr/* if it runs after the mountnfs.sh script
- PATH=/sbin:/usr/sbin:/bin:/usr/bin
- DESC="filtering proxy server"
- NAME=privoxy
- DAEMON=/usr/sbin/$NAME
- PIDFILE=/var/run/$NAME
- OWNER=privoxy
- CONFIGFILE=/etc/privoxy/config
- SCRIPTNAME=/etc/init.d/$NAME
- LOGDIR=/var/log/privoxy
- DEFAULTSFILE=/etc/default/$NAME
- # Exit if the package is not installed
- [ -x "$DAEMON" ] || exit 0
- # Read configuration variable file if it is present
- [ -r $DEFAULTSFILE ] && . $DEFAULTSFILE
- # Create log directory if it does not exist
- if [ ! -d "$LOGDIR" ]; then
- mkdir -m 750 $LOGDIR
- chown $OWNER:adm $LOGDIR
- fi
- # Load the VERBOSE setting and other rcS variables
- . /lib/init/vars.sh
- # Define LSB log_* functions.
- # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
- . /lib/lsb/init-functions
- #
- # Function that starts the daemon/service
- #
- do_start()
- {
- # Return
- # 0 if daemon has been started
- # 1 if daemon was already running
- # 2 if daemon could not be started
- stats=0
- for c in {0..9}
- do
- DAEMON_ARGS="--pidfile $PIDFILE-$c.pid $CONFIGFILE-$c"
- start-stop-daemon --start --quiet --pidfile $PIDFILE-$c.pid --exec $DAEMON --test > /dev/null \
- || stats=1
- start-stop-daemon --start --quiet --pidfile $PIDFILE-$c.pid --exec $DAEMON -- \
- $DAEMON_ARGS \
- || stats=2
- done
- return "$stats"
- # Add code here, if necessary, that waits for the process to be ready
- # to handle requests from services started subsequently which depend
- # on this one. As a last resort, sleep for some time.
- }
- #
- # Function that stops the daemon/service
- #
- do_stop()
- {
- for c in {0..9}
- do
- # Return
- # 0 if daemon has been stopped
- # 1 if daemon was already stopped
- # 2 if daemon could not be stopped
- # other if a failure occurred
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE-$c.pid --name $NAME
- RETVAL="$?"
- [ "$RETVAL" = 2 ] && return 2
- # Wait for children to finish too if this is a daemon that forks
- # and if the daemon is only ever run from this initscript.
- # If the above conditions are not satisfied then add some other code
- # that waits for the process to drop all resources that could be
- # needed by services started subsequently. A last resort is to
- # sleep for some time.
- start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
- [ "$?" = 2 ] && return 2
- # Many daemons don't delete their pidfiles when they exit.
- rm -f $PIDFILE-$c.pid
- done
- return "$RETVAL"
- }
- #
- # Function that sends a SIGHUP to the daemon/service
- #
- do_reload() {
- #
- # If the daemon can reload its configuration without
- # restarting (for example, when it is sent a SIGHUP),
- # then implement that here.
- #
- start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
- return 0
- }
- case "$1" in
- start)
- if [ "$RUN_DAEMON" = "no" ]; then
- [ "$VERBOSE" != no ] && log_warning_msg "Not starting $DESC (disabled in $DEFAULTSFILE)."
- exit 0
- fi
- [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
- do_start
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- stop)
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- #reload|force-reload)
- #
- # If do_reload() is not implemented then leave this commented out
- # and leave 'force-reload' as an alias for 'restart'.
- #
- #log_daemon_msg "Reloading $DESC" "$NAME"
- #do_reload
- #log_end_msg $?
- #;;
- restart|force-reload)
- #
- # If the "reload" option is implemented then remove the
- # 'force-reload' alias
- #
- if [ "$RUN_DAEMON" = "no" ]; then
- [ "$VERBOSE" != no ] && log_warning_msg "Not restarting $DESC (disabled in $DEFAULTSFILE)."
- exit 0
- fi
- log_daemon_msg "Restarting $DESC" "$NAME"
- do_stop
- case "$?" in
- 0|1)
- do_start
- case "$?" in
- 0) log_end_msg 0 ;;
- 1) log_end_msg 1 ;; # Old process is still running
- *) log_end_msg 1 ;; # Failed to start
- esac
- ;;
- *)
- # Failed to stop
- log_end_msg 1
- ;;
- esac
- ;;
- status)
- status_of_proc "$DAEMON" "$NAME"
- exit $?
- ;;
- *)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
- exit 3
- ;;
- esac
- :
- ---------------------------------
- cambiar permisos
- ---------------------------------
- sudo chmod +x /etc/init.d/privoxy
- -----------------------------------
- Configuracion privoxy
- Agregar hasta abajo
- gedit /etc/privoxy/config
- user-manual /usr/share/doc/privoxy/user-manual
- confdir /etc/privoxy
- actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
- actionsfile default.action # Main actions file
- actionsfile user.action # User customizations
- filterfile default.filter
- logfile logfile
- toggle 1
- enable-remote-toggle 0
- enable-remote-http-toggle 0
- enable-edit-actions 0
- enforce-blocks 0
- buffer-limit 4096
- forwarded-connect-retries 0
- accept-intercepted-requests 0
- allow-cgi-request-crunching 0
- split-large-forms 0
- keep-alive-timeout 5
- socket-timeout 300
- handle-as-empty-doc-returns-ok 1
- ----------------------------------
- iniciando privoxy
- sudo /etc/init.d/privoxy start
- ---------------------------------------------
- gedit /etc/squid3/squid.conf
- -------------------------------------------
- Agregar esto hasta el final
- ----------------------------------------------
- acl all src all
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32 ::1
- acl to_localhost dst 127.0.0.0/9 0.0.0.0/32 ::1
- acl SSL_ports port 443
- acl Safe_ports port 80 # http
- acl Safe_ports port 21 # ftp
- acl Safe_ports port 443 # https
- acl Safe_ports port 70 # gopher
- acl Safe_ports port 210 # wais
- acl Safe_ports port 1025-65535 # unregistered ports
- acl Safe_ports port 280 # http-mgmt
- acl Safe_ports port 488 # gss-http
- acl Safe_ports port 591 # filemaker
- acl Safe_ports port 777 # multiling http
- acl CONNECT method CONNECT
- http_access allow manager localhost
- http_access deny manager
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access allow localhost
- http_access deny all
- http_port 3128
- hierarchy_stoplist cgi-bin ?
- coredump_dir /var/spool/squid
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern . 0 20% 4320
- cache_peer localhost parent 11000 0 round-robin no-query
- cache_peer localhost_1 parent 11010 0 round-robin no-query
- cache_peer localhost_2 parent 11020 0 round-robin no-query
- cache_peer localhost_3 parent 11030 0 round-robin no-query
- cache_peer localhost_4 parent 11040 0 round-robin no-query
- cache_peer localhost_5 parent 11050 0 round-robin no-query
- cache_peer localhost_6 parent 11060 0 round-robin no-query
- cache_peer localhost_7 parent 11070 0 round-robin no-query
- cache_peer localhost_8 parent 11080 0 round-robin no-query
- cache_peer localhost_9 parent 11090 0 round-robin no-query
- never_direct allow all
- always_direct deny all
- forwarded_for off
- --------------------------------------
- configurando squid3
- ---------------------------------------
- sudo /etc/init.d/squid3 stop
- sudo squid3 -f /etc/squid3/squid.conf -z
- sudo /etc/init.d/squid3 start
- -------------------------------
- Configurar los host
- ------------------------------------
- gedit /etc/hosts
- 127.0.0.1 localhost #
- 127.0.0.1 localhost_1
- 127.0.0.1 localhost_2
- 127.0.0.1 localhost_3
- 127.0.0.1 localhost_4
- 127.0.0.1 localhost_5
- 127.0.0.1 localhost_6
- 127.0.0.1 localhost_7
- 127.0.0.1 localhost_8
- 127.0.0.1 localhost_9
- agrega estas lineas sin eliminar todo el contenido dejar instacto
- el nombre de tu host por ejemplo
- 127.0.0.1 kali No eliminar tu host "ejemplo"
- solo agrega las lineas de arriva
- -----------------------------------------
- Restart la red para efectuar los cambios
- ---------------------------------------
- sudo service networking restart
- ---------------------------------------
- Para usar en firefox
- Preferencias / red / configurar / configuracion manual de proxy
- proxy : localhost puerto: 3128
- marcar la casilla . Usar el mismo proxy globalmente
- Aceptar
- ---------------------
- Los procesos funcionan perfectamente 10 a 15 segundos
- se recomienda usar duckduckgo ,
- -------------------------------------------------------------------------------------------
- | |
- | COMENSANDO CONFIGURACION TOR DOMAIN FLUX |
- -------------------------------------------------------------------------------------------
- -----------------------------------------------------------------
- AES Encrypt
- -----------------------------------------------------------------
- Verifica que todo trabaje correctamente para Encryptar la coneccion saliente
- Encrypt AES Code: https://www.sendspace.com/file/7clzk4
- puerto sera cambiado a puerto de |3128 a 9999 |
- proxy : localhost puerto: 9999
- ------------------------------------------------------------------
- redireccion iptables |invisible proxy |comienso Tor Domain Flux
- ------------------------------------------------------------------
- iptables -t nat -A PREROUTING -i wlan1 -p tcp --dport 80 -j DNAT --to 192.168.1.1:3128
- iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j REDIRECT --to-port 3128
- -------------------------------------------------------------------
- cambiando apache de puerto
- Change apache port 8080
- service apache2 start
- -----------------------------------------------------------------------
- cONFIGURANDO HIDDEN SERVICE A APACHE
- -----------------------------------------------------------------------
- TOR - SQUID3 - PRIVOXY - ENCRYPT AES + ROUTING + HIDEN SERVICE .onion
- contact , work perfect cybercrimen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement