Advertisement
Guest User

Tor - Squid3 - Privoxy + AES

a guest
Feb 7th, 2015
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.80 KB | None | 0 0
  1. Guia privoxy + Tor + Squid3 + AES en KALI LINUX 1.0.9a
  2. Solo copea y pega!
  3.  
  4. ------------------------
  5.  
  6. instalacion paquetes
  7. sudo apt-get install tor privoxy squid3
  8.  
  9. ------------------------
  10.  
  11. terminando la instalacion instala , gedit
  12. apt-get install gedit
  13.  
  14. -----------------------------------
  15.  
  16. Detener procesos
  17.  
  18. sudo /etc/init.d/squid3 stop
  19. sudo /etc/init.d/privoxy stop
  20. sudo /etc/init.d/tor stop
  21.  
  22. -----------------------------
  23.  
  24. Configurando tor *
  25.  
  26. -----------------------------
  27.  
  28. gedit /etc/tor/torrc-0
  29.  
  30. SocksBindAddress 127.0.0.1
  31. SocksPort 10000
  32. SocksPolicy accept *
  33. AllowUnverifiedNodes middle,rendezvous
  34. Log notice syslog
  35. RunAsDaemon 1
  36. User debian-tor
  37. CircuitBuildTimeout 30
  38. NumEntryGuards 6
  39. KeepalivePeriod 60
  40. NewCircuitPeriod 15
  41. DataDirectory /var/lib/tor0
  42. PidFile /var/run/tor/tor-0.pid
  43.  
  44. -----------------------------
  45.  
  46. gedit /etc/tor/torrc-1
  47.  
  48. SocksBindAddress 127.0.0.1
  49. SocksPort 10010
  50. SocksPolicy accept *
  51. AllowUnverifiedNodes middle,rendezvous
  52. Log notice syslog
  53. RunAsDaemon 1
  54. User debian-tor
  55. CircuitBuildTimeout 30
  56. NumEntryGuards 6
  57. KeepalivePeriod 60
  58. NewCircuitPeriod 15
  59. DataDirectory /var/lib/tor1
  60. PidFile /var/run/tor/tor-1.pid
  61.  
  62. ----------------------------------
  63.  
  64. gedit /etc/tor/torrc-2
  65.  
  66. SocksBindAddress 127.0.0.1
  67. SocksPort 10020
  68. SocksPolicy accept *
  69. AllowUnverifiedNodes middle,rendezvous
  70. Log notice syslog
  71. RunAsDaemon 1
  72. User debian-tor
  73. CircuitBuildTimeout 30
  74. NumEntryGuards 6
  75. KeepalivePeriod 60
  76. NewCircuitPeriod 15
  77. DataDirectory /var/lib/tor2
  78. PidFile /var/run/tor/tor-2.pid
  79.  
  80. ------------------------
  81.  
  82. gedit /etc/tor/torrc-3
  83.  
  84. SocksBindAddress 127.0.0.1
  85. SocksPort 10030
  86. SocksPolicy accept *
  87. AllowUnverifiedNodes middle,rendezvous
  88. Log notice syslog
  89. RunAsDaemon 1
  90. User debian-tor
  91. CircuitBuildTimeout 30
  92. NumEntryGuards 6
  93. KeepalivePeriod 60
  94. NewCircuitPeriod 15
  95. DataDirectory /var/lib/tor3
  96. PidFile /var/run/tor/tor-3.pid
  97.  
  98. -------------------------------------------
  99.  
  100. gedit /etc/tor/torrc-4
  101.  
  102. SocksBindAddress 127.0.0.1
  103. SocksPort 10040
  104. SocksPolicy accept *
  105. AllowUnverifiedNodes middle,rendezvous
  106. Log notice syslog
  107. RunAsDaemon 1
  108. User debian-tor
  109. CircuitBuildTimeout 30
  110. NumEntryGuards 6
  111. KeepalivePeriod 60
  112. NewCircuitPeriod 15
  113. DataDirectory /var/lib/tor4
  114. PidFile /var/run/tor/tor-4.pid
  115.  
  116. ------------------------------
  117.  
  118. gedit /etc/tor/torrc-5
  119.  
  120. SocksBindAddress 127.0.0.1
  121. SocksPort 10050
  122. SocksPolicy accept *
  123. AllowUnverifiedNodes middle,rendezvous
  124. Log notice syslog
  125. RunAsDaemon 1
  126. User debian-tor
  127. CircuitBuildTimeout 30
  128. NumEntryGuards 6
  129. KeepalivePeriod 60
  130. NewCircuitPeriod 15
  131. DataDirectory /var/lib/tor5
  132. PidFile /var/run/tor/tor-5.pid
  133.  
  134. ---------------------------------------
  135.  
  136. gedit /etc/tor/torrc-6
  137.  
  138. SocksBindAddress 127.0.0.1
  139. SocksPort 10060
  140. SocksPolicy accept *
  141. AllowUnverifiedNodes middle,rendezvous
  142. Log notice syslog
  143. RunAsDaemon 1
  144. User debian-tor
  145. CircuitBuildTimeout 30
  146. NumEntryGuards 6
  147. KeepalivePeriod 60
  148. NewCircuitPeriod 15
  149. DataDirectory /var/lib/tor6
  150. PidFile /var/run/tor/tor-6.pid
  151.  
  152. ---------------------------------------------------
  153.  
  154. gedit /etc/tor/torrc-7
  155.  
  156. SocksBindAddress 127.0.0.1
  157. SocksPort 10070
  158. SocksPolicy accept *
  159. AllowUnverifiedNodes middle,rendezvous
  160. Log notice syslog
  161. RunAsDaemon 1
  162. User debian-tor
  163. CircuitBuildTimeout 30
  164. NumEntryGuards 6
  165. KeepalivePeriod 60
  166. NewCircuitPeriod 15
  167. DataDirectory /var/lib/tor7
  168. PidFile /var/run/tor/tor-7.pid
  169.  
  170. --------------------------------------------
  171.  
  172. gedit /etc/tor/torrc-8
  173.  
  174. SocksBindAddress 127.0.0.1
  175. SocksPort 10080
  176. SocksPolicy accept *
  177. AllowUnverifiedNodes middle,rendezvous
  178. Log notice syslog
  179. RunAsDaemon 1
  180. User debian-tor
  181. CircuitBuildTimeout 30
  182. NumEntryGuards 6
  183. KeepalivePeriod 60
  184. NewCircuitPeriod 15
  185. DataDirectory /var/lib/tor8
  186. PidFile /var/run/tor/tor-8.pid
  187.  
  188. --------------------------------
  189.  
  190. gedit /etc/tor/torrc-9
  191.  
  192. SocksBindAddress 127.0.0.1
  193. SocksPort 10090
  194. SocksPolicy accept *
  195. AllowUnverifiedNodes middle,rendezvous
  196. Log notice syslog
  197. RunAsDaemon 1
  198. User debian-tor
  199. CircuitBuildTimeout 30
  200. NumEntryGuards 6
  201. KeepalivePeriod 60
  202. NewCircuitPeriod 15
  203. DataDirectory /var/lib/tor9
  204. PidFile /var/run/tor/tor-9.pid
  205.  
  206. --------------------------------
  207.  
  208. Instalacion y permisos / Folders tor
  209.  
  210. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor0
  211. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor1
  212. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor2
  213. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor3
  214. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor4
  215. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor5
  216. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor6
  217. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor7
  218. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor8
  219. sudo install -o debian-tor -g debian-tor -m 700 -d /var/lib/tor9
  220.  
  221. Crear tor y cambiar permisos
  222.  
  223. sudo cp /etc/init.d/tor /etc/init.d/tor.orig
  224. sudo rm /etc/init.d/tor
  225. sudo gedit /etc/init.d/tor
  226.  
  227. ------------------------------------------
  228. copear y pegar este codigo
  229. ------------------------------------------
  230.  
  231. #! /bin/bash
  232.  
  233. ### BEGIN INIT INFO
  234. # Provides: tor
  235. # Required-Start: $local_fs $remote_fs $network $named $time
  236. # Required-Stop: $local_fs $remote_fs $network $named $time
  237. # Should-Start: $syslog
  238. # Should-Stop: $syslog
  239. # Default-Start: 2 3 4 5
  240. # Default-Stop: 0 1 6
  241. # Short-Description: Starts The Onion Router daemon processes
  242. # Description: Start The Onion Router, a TCP overlay
  243. # network client that provides anonymous
  244. # transport.
  245. ### END INIT INFO
  246.  
  247. set -e
  248.  
  249. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  250. DAEMON=/usr/sbin/tor
  251. NAME=tor
  252. DESC="tor daemon"
  253. CONFDIR=/etc/tor
  254. TORPIDDIR=/var/run/tor
  255. TORPID=$TORPIDDIR/tor
  256. DEFAULTSFILE=/etc/default/$NAME
  257. WAITFORDAEMON=60
  258. ARGS="--quiet -f "$CONFDIR/torrc
  259. # Let's try to figure our some sane defaults:
  260. if [ -r /proc/sys/fs/file-max ]; then
  261. system_max=`cat /proc/sys/fs/file-max`
  262. if [ "$system_max" -gt "80000" ] ; then
  263. MAX_FILEDESCRIPTORS=32768
  264. elif [ "$system_max" -gt "40000" ] ; then
  265. MAX_FILEDESCRIPTORS=16384
  266. elif [ "$system_max" -gt "10000" ] ; then
  267. MAX_FILEDESCRIPTORS=8192
  268. else
  269. MAX_FILEDESCRIPTORS=1024
  270. cat << EOF
  271.  
  272. Warning: Your system has very few filedescriptors available in total.
  273.  
  274. Maybe you should try raising that by adding 'fs.file-max=100000' to your
  275. /etc/sysctl.conf file. Feel free to pick any number that you deem appropriate.
  276. Then run 'sysctl -p'. See /proc/sys/fs/file-max for the current value, and
  277. file-nr in the same directory for how many of those are used at the moment.
  278.  
  279. EOF
  280. fi
  281. else
  282. MAX_FILEDESCRIPTORS=8192
  283. fi
  284.  
  285. NICE=""
  286.  
  287. test -x $DAEMON || exit 0
  288.  
  289. # Include tor defaults if available
  290. if [ -f $DEFAULTSFILE ] ; then
  291. . $DEFAULTSFILE
  292. fi
  293.  
  294. wait_for_deaddaemon () {
  295. pid=$1
  296. sleep 1
  297. if test -n "$pid"
  298. then
  299. if kill -0 $pid 2>/dev/null
  300. then
  301. echo -n "."
  302. cnt=0
  303. while kill -0 $pid 2>/dev/null
  304. do
  305. cnt=`expr $cnt + 1`
  306. if [ $cnt -gt $WAITFORDAEMON ]
  307. then
  308. echo " FAILED."
  309. return 1
  310. fi
  311. sleep 1
  312. echo -n "."
  313. done
  314. fi
  315. fi
  316. return 0
  317. }
  318.  
  319. check_torpiddir () {
  320. if test ! -d $TORPIDDIR; then
  321. #echo "There is no $TORPIDDIR directory. Creating one for you."
  322. mkdir -m 02750 "$TORPIDDIR"
  323. chown debian-tor:debian-tor "$TORPIDDIR"
  324. fi
  325.  
  326. if test ! -x $TORPIDDIR; then
  327. echo "Cannot access $TORPIDDIR directory, are you root?" >&2
  328. exit 1
  329. fi
  330. }
  331.  
  332. check_config () {
  333. if ! $DAEMON --verify-config > /dev/null; then
  334. echo "ABORTED: Tor configuration invalid:" >&2
  335. $DAEMON --verify-config >&2
  336. exit 1
  337. fi
  338. }
  339.  
  340. case "$1" in
  341. start)
  342. if [ "$RUN_DAEMON" != "yes" ]; then
  343. echo "Not starting $DESC (Disabled in $DEFAULTSFILE)."
  344. exit 0
  345. fi
  346.  
  347. if [ -n "$MAX_FILEDESCRIPTORS" ]; then
  348. echo -n "Raising maximum number of filedescriptors (ulimit -n) to $MAX_FILEDESCRIPTORS"
  349. if ulimit -n "$MAX_FILEDESCRIPTORS" ; then
  350. echo "."
  351. else
  352. echo ": FAILED."
  353. fi
  354. fi
  355.  
  356. check_torpiddir
  357.  
  358. echo "Starting $DESC: $NAME..."
  359. check_config
  360. for c in {0..9}
  361. do
  362. start-stop-daemon --start --quiet --oknodo \
  363. --pidfile $TORPID-$c.pid \
  364. $NICE \
  365. --exec $DAEMON -- $ARGS-$c
  366. echo "$NAME $c done."
  367. done
  368. ;;
  369. stop)
  370. echo -n "Stopping $DESC: "
  371. for c in {0..9}
  372. do
  373. pid=`cat $TORPID-$c.pid 2>/dev/null` || true
  374.  
  375. if test ! -f $TORPID-$c.pid -o -z "$pid"; then
  376. echo "not running (there is no $TORPID-$c.pid)."
  377. exit 0
  378. fi
  379.  
  380. if start-stop-daemon --stop --signal INT --quiet --pidfile $TORPID-$c.pid --exec $DAEMON; then
  381. wait_for_deaddaemon $pid
  382. echo "$NAME $c stopped."
  383. elif kill -0 $pid 2>/dev/null
  384. then
  385. echo "FAILED (Is $pid not $NAME? Is $DAEMON a different binary now?)."
  386. else
  387. echo "FAILED ($DAEMON died: process $pid not running; or permission denied)."
  388. fi
  389. done
  390. ;;
  391. reload|force-reload)
  392. for c in {0..9}
  393. do
  394. echo -n "Reloading $DESC configuration: "
  395. pid=`cat $TORPID-$c.pid 2>/dev/null` || true
  396.  
  397. if test ! -f $TORPID-$c.pid -o -z "$pid"; then
  398. echo "not running (there is no $TORPID-$c.pid)."
  399. exit 0
  400. fi
  401.  
  402. check_config
  403.  
  404. if start-stop-daemon --stop --signal 1 --quiet --pidfile $TORPID-$c.pid --exec $DAEMON
  405. then
  406. echo "$NAME $c."
  407. elif kill -0 $pid 2>/dev/null
  408. then
  409. echo "FAILED (Is $pid not $NAME? Is $DAEMON a different binary now?)."
  410. else
  411. echo "FAILED ($DAEMON died: process $pid not running; or permission denied)."
  412. fi
  413. done
  414. ;;
  415. restart)
  416. check_config
  417.  
  418. $0 stop
  419. sleep 1
  420. $0 start
  421. ;;
  422. status)
  423. for c in {0..9}
  424. do
  425. if test ! -r $(dirname $TORPID-$c.pid); then
  426. echo "cannot read tor PID file"
  427. exit 4
  428. fi
  429. pid=`cat $TORPID-$c.pid 2>/dev/null` || true
  430. if test ! -f $TORPID-$c.pid -o -z "$pid"; then
  431. echo "tor is not running"
  432. exit 3
  433. fi
  434. if ps "$pid" >/dev/null 2>&1; then
  435. echo "tor $c is running"
  436. else
  437. echo "tor is not running"
  438. exit 1
  439. fi
  440. done
  441. exit 0
  442. ;;
  443. *)
  444. echo "Usage: $0 {start|stop|restart|reload|force-reload|status}" >&2
  445. exit 1
  446. ;;
  447. esac
  448.  
  449. exit 0
  450.  
  451. -------------------------------
  452. Guarda los cambios
  453.  
  454. -------------------------------
  455. Permisos a tor
  456.  
  457. sudo chmod +x /etc/init.d/tor
  458.  
  459. ------------------------------
  460.  
  461. Agregar a la linea tor "hasta abajo"
  462.  
  463. gedit /etc/tor/torrc
  464.  
  465. SocksBindAddress 127.0.0.1 # accept connections only from localhost
  466. AllowUnverifiedNodes middle,rendezvous
  467. Log notice syslog
  468.  
  469. -------------------------------------------
  470.  
  471. Inicia tor
  472.  
  473. sudo /etc/init.d/tor start
  474.  
  475. -------------------------------
  476.  
  477. configuracion privoxy
  478.  
  479. ----------------------------------------
  480.  
  481. gedit /etc/privoxy/config-0
  482.  
  483. user-manual /usr/share/doc/privoxy/user-manual
  484. confdir /etc/privoxy
  485. actionsfile match-all.action
  486. actionsfile default.action
  487. actionsfile user.action
  488. filterfile default.filter
  489. logfile logfile
  490. toggle 1
  491. enable-remote-toggle 0
  492. enable-remote-http-toggle 0
  493. enable-edit-actions 0
  494. enforce-blocks 0
  495. buffer-limit 4096
  496. forwarded-connect-retries 0
  497. accept-intercepted-requests 0
  498. allow-cgi-request-crunching 0
  499. split-large-forms 0
  500. keep-alive-timeout 5
  501. socket-timeout 300
  502. handle-as-empty-doc-returns-ok 1
  503. logdir /var/log/privoxy_0
  504. listen-address localhost:11000
  505. forward-socks5 / 127.0.0.1:10000 .
  506.  
  507. ---------------------------------------
  508.  
  509. gedit /etc/privoxy/config-1
  510.  
  511. user-manual /usr/share/doc/privoxy/user-manual
  512. confdir /etc/privoxy
  513. actionsfile match-all.action
  514. actionsfile default.action
  515. actionsfile user.action
  516. filterfile default.filter
  517. logfile logfile
  518. toggle 1
  519. enable-remote-toggle 0
  520. enable-remote-http-toggle 0
  521. enable-edit-actions 0
  522. enforce-blocks 0
  523. buffer-limit 4096
  524. forwarded-connect-retries 0
  525. accept-intercepted-requests 0
  526. allow-cgi-request-crunching 0
  527. split-large-forms 0
  528. keep-alive-timeout 5
  529. socket-timeout 300
  530. handle-as-empty-doc-returns-ok 1
  531. logdir /var/log/privoxy_1
  532. listen-address localhost:11010
  533. forward-socks5 / 127.0.0.1:10010 .
  534.  
  535. ---------------------------------------
  536.  
  537. gedit /etc/privoxy/config-2
  538.  
  539. user-manual /usr/share/doc/privoxy/user-manual
  540. confdir /etc/privoxy
  541. actionsfile match-all.action
  542. actionsfile default.action
  543. actionsfile user.action
  544. filterfile default.filter
  545. logfile logfile
  546. toggle 1
  547. enable-remote-toggle 0
  548. enable-remote-http-toggle 0
  549. enable-edit-actions 0
  550. enforce-blocks 0
  551. buffer-limit 4096
  552. forwarded-connect-retries 0
  553. accept-intercepted-requests 0
  554. allow-cgi-request-crunching 0
  555. split-large-forms 0
  556. keep-alive-timeout 5
  557. socket-timeout 300
  558. handle-as-empty-doc-returns-ok 1
  559. logdir /var/log/privoxy_2
  560. listen-address localhost:11020
  561. forward-socks5 / 127.0.0.1:10020 .
  562.  
  563. --------------------------------------
  564.  
  565. gedit /etc/privoxy/config-3
  566.  
  567. user-manual /usr/share/doc/privoxy/user-manual
  568. confdir /etc/privoxy
  569. actionsfile match-all.action
  570. actionsfile default.action
  571. actionsfile user.action
  572. filterfile default.filter
  573. logfile logfile
  574. toggle 1
  575. enable-remote-toggle 0
  576. enable-remote-http-toggle 0
  577. enable-edit-actions 0
  578. enforce-blocks 0
  579. buffer-limit 4096
  580. forwarded-connect-retries 0
  581. accept-intercepted-requests 0
  582. allow-cgi-request-crunching 0
  583. split-large-forms 0
  584. keep-alive-timeout 5
  585. socket-timeout 300
  586. handle-as-empty-doc-returns-ok 1
  587. logdir /var/log/privoxy_3
  588. listen-address localhost:11030
  589. forward-socks5 / 127.0.0.1:10030 .
  590.  
  591.  
  592. -----------------------------------------
  593.  
  594. gedit /etc/privoxy/config-4
  595.  
  596. user-manual /usr/share/doc/privoxy/user-manual
  597. confdir /etc/privoxy
  598. actionsfile match-all.action
  599. actionsfile default.action
  600. actionsfile user.action
  601. filterfile default.filter
  602. logfile logfile
  603. toggle 1
  604. enable-remote-toggle 0
  605. enable-remote-http-toggle 0
  606. enable-edit-actions 0
  607. enforce-blocks 0
  608. buffer-limit 4096
  609. forwarded-connect-retries 0
  610. accept-intercepted-requests 0
  611. allow-cgi-request-crunching 0
  612. split-large-forms 0
  613. keep-alive-timeout 5
  614. socket-timeout 300
  615. handle-as-empty-doc-returns-ok 1
  616. logdir /var/log/privoxy_4
  617. listen-address localhost:11040
  618. forward-socks5 / 127.0.0.1:10040 .
  619.  
  620. ------------------------------
  621.  
  622. gedit /etc/privoxy/config-5
  623.  
  624. user-manual /usr/share/doc/privoxy/user-manual
  625. confdir /etc/privoxy
  626. actionsfile match-all.action
  627. actionsfile default.action
  628. actionsfile user.action
  629. filterfile default.filter
  630. logfile logfile
  631. toggle 1
  632. enable-remote-toggle 0
  633. enable-remote-http-toggle 0
  634. enable-edit-actions 0
  635. enforce-blocks 0
  636. buffer-limit 4096
  637. forwarded-connect-retries 0
  638. accept-intercepted-requests 0
  639. allow-cgi-request-crunching 0
  640. split-large-forms 0
  641. keep-alive-timeout 5
  642. socket-timeout 300
  643. handle-as-empty-doc-returns-ok 1
  644. logdir /var/log/privoxy_5
  645. listen-address localhost:11050
  646. forward-socks5 / 127.0.0.1:10050 .
  647.  
  648. ----------------------------------
  649.  
  650. gedit /etc/privoxy/config-6
  651.  
  652. user-manual /usr/share/doc/privoxy/user-manual
  653. confdir /etc/privoxy
  654. actionsfile match-all.action
  655. actionsfile default.action
  656. actionsfile user.action
  657. filterfile default.filter
  658. logfile logfile
  659. toggle 1
  660. enable-remote-toggle 0
  661. enable-remote-http-toggle 0
  662. enable-edit-actions 0
  663. enforce-blocks 0
  664. buffer-limit 4096
  665. forwarded-connect-retries 0
  666. accept-intercepted-requests 0
  667. allow-cgi-request-crunching 0
  668. split-large-forms 0
  669. keep-alive-timeout 5
  670. socket-timeout 300
  671. handle-as-empty-doc-returns-ok 1
  672. logdir /var/log/privoxy_6
  673. listen-address localhost:11060
  674. forward-socks5 / 127.0.0.1:10060 .
  675.  
  676. ------------------
  677.  
  678. gedit /etc/privoxy/config-7
  679.  
  680. user-manual /usr/share/doc/privoxy/user-manual
  681. confdir /etc/privoxy
  682. actionsfile match-all.action
  683. actionsfile default.action
  684. actionsfile user.action
  685. filterfile default.filter
  686. logfile logfile
  687. toggle 1
  688. enable-remote-toggle 0
  689. enable-remote-http-toggle 0
  690. enable-edit-actions 0
  691. enforce-blocks 0
  692. buffer-limit 4096
  693. forwarded-connect-retries 0
  694. accept-intercepted-requests 0
  695. allow-cgi-request-crunching 0
  696. split-large-forms 0
  697. keep-alive-timeout 5
  698. socket-timeout 300
  699. handle-as-empty-doc-returns-ok 1
  700. logdir /var/log/privoxy_7
  701. listen-address localhost:11070
  702. forward-socks5 / 127.0.0.1:10070 .
  703.  
  704. -----------------------------
  705.  
  706. gedit /etc/privoxy/config-8
  707.  
  708. user-manual /usr/share/doc/privoxy/user-manual
  709. confdir /etc/privoxy
  710. actionsfile match-all.action
  711. actionsfile default.action
  712. actionsfile user.action
  713. filterfile default.filter
  714. logfile logfile
  715. toggle 1
  716. enable-remote-toggle 0
  717. enable-remote-http-toggle 0
  718. enable-edit-actions 0
  719. enforce-blocks 0
  720. buffer-limit 4096
  721. forwarded-connect-retries 0
  722. accept-intercepted-requests 0
  723. allow-cgi-request-crunching 0
  724. split-large-forms 0
  725. keep-alive-timeout 5
  726. socket-timeout 300
  727. handle-as-empty-doc-returns-ok 1
  728. logdir /var/log/privoxy_8
  729. listen-address localhost:11080
  730. forward-socks5 / 127.0.0.1:10080 .
  731.  
  732. ------------------------------------
  733.  
  734. gedit /etc/privoxy/config-9
  735.  
  736. user-manual /usr/share/doc/privoxy/user-manual
  737. confdir /etc/privoxy
  738. actionsfile match-all.action
  739. actionsfile default.action
  740. actionsfile user.action
  741. filterfile default.filter
  742. logfile logfile
  743. toggle 1
  744. enable-remote-toggle 0
  745. enable-remote-http-toggle 0
  746. enable-edit-actions 0
  747. enforce-blocks 0
  748. buffer-limit 4096
  749. forwarded-connect-retries 0
  750. accept-intercepted-requests 0
  751. allow-cgi-request-crunching 0
  752. split-large-forms 0
  753. keep-alive-timeout 5
  754. socket-timeout 300
  755. handle-as-empty-doc-returns-ok 1
  756. logdir /var/log/privoxy_9
  757. listen-address localhost:11090
  758. forward-socks5 / 127.0.0.1:10090 .
  759.  
  760. ------------------------------------
  761.  
  762.  
  763. instalando folders/ provoxy/
  764. ----------------------------------
  765.  
  766. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_0
  767. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_1
  768. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_2
  769. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_3
  770. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_4
  771. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_5
  772. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_6
  773. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_7
  774. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_8
  775. sudo install -o privoxy -g nogroup -m 750 -d /var/log/privoxy_9
  776.  
  777. -----------------------------
  778. configurando privoxy
  779. -----------------------------
  780.  
  781. sudo cp /etc/init.d/privoxy /etc/init.d/privoxy.orig
  782. sudo rm /etc/init.d/privoxy
  783. sudo gedit /etc/init.d/privoxy
  784.  
  785. #! /bin/bash
  786. ### BEGIN INIT INFO
  787. # Provides: privoxy
  788. # Required-Start: $local_fs $remote_fs $network $time
  789. # Required-Stop: $local_fs $remote_fs $network $time
  790. # Default-Start: 2 3 4 5
  791. # Default-Stop: 0 1 6
  792. # Short-Description: Privacy enhancing HTTP Proxy
  793. # Description: Privoxy is a web proxy with advanced filtering
  794. # capabilities for protecting privacy, filtering
  795. # web page content, managing cookies, controlling
  796. # access, and removing ads, banners, pop-ups and
  797. # other obnoxious Internet junk.
  798. ### END INIT INFO
  799.  
  800. # Author: Roland Rosenfeld <roland@debian.org>
  801.  
  802. # Do NOT "set -e"
  803.  
  804. # PATH should only include /usr/* if it runs after the mountnfs.sh script
  805. PATH=/sbin:/usr/sbin:/bin:/usr/bin
  806. DESC="filtering proxy server"
  807. NAME=privoxy
  808. DAEMON=/usr/sbin/$NAME
  809. PIDFILE=/var/run/$NAME
  810. OWNER=privoxy
  811. CONFIGFILE=/etc/privoxy/config
  812. SCRIPTNAME=/etc/init.d/$NAME
  813. LOGDIR=/var/log/privoxy
  814. DEFAULTSFILE=/etc/default/$NAME
  815.  
  816. # Exit if the package is not installed
  817. [ -x "$DAEMON" ] || exit 0
  818.  
  819. # Read configuration variable file if it is present
  820. [ -r $DEFAULTSFILE ] && . $DEFAULTSFILE
  821.  
  822. # Create log directory if it does not exist
  823. if [ ! -d "$LOGDIR" ]; then
  824. mkdir -m 750 $LOGDIR
  825. chown $OWNER:adm $LOGDIR
  826. fi
  827.  
  828. # Load the VERBOSE setting and other rcS variables
  829. . /lib/init/vars.sh
  830.  
  831. # Define LSB log_* functions.
  832. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
  833. . /lib/lsb/init-functions
  834.  
  835. #
  836. # Function that starts the daemon/service
  837. #
  838. do_start()
  839. {
  840. # Return
  841. # 0 if daemon has been started
  842. # 1 if daemon was already running
  843. # 2 if daemon could not be started
  844.  
  845. stats=0
  846. for c in {0..9}
  847. do
  848. DAEMON_ARGS="--pidfile $PIDFILE-$c.pid $CONFIGFILE-$c"
  849. start-stop-daemon --start --quiet --pidfile $PIDFILE-$c.pid --exec $DAEMON --test > /dev/null \
  850. || stats=1
  851. start-stop-daemon --start --quiet --pidfile $PIDFILE-$c.pid --exec $DAEMON -- \
  852. $DAEMON_ARGS \
  853. || stats=2
  854. done
  855. return "$stats"
  856. # Add code here, if necessary, that waits for the process to be ready
  857. # to handle requests from services started subsequently which depend
  858. # on this one. As a last resort, sleep for some time.
  859. }
  860.  
  861. #
  862. # Function that stops the daemon/service
  863. #
  864. do_stop()
  865. {
  866. for c in {0..9}
  867. do
  868. # Return
  869. # 0 if daemon has been stopped
  870. # 1 if daemon was already stopped
  871. # 2 if daemon could not be stopped
  872. # other if a failure occurred
  873. start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE-$c.pid --name $NAME
  874. RETVAL="$?"
  875. [ "$RETVAL" = 2 ] && return 2
  876. # Wait for children to finish too if this is a daemon that forks
  877. # and if the daemon is only ever run from this initscript.
  878. # If the above conditions are not satisfied then add some other code
  879. # that waits for the process to drop all resources that could be
  880. # needed by services started subsequently. A last resort is to
  881. # sleep for some time.
  882. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON
  883. [ "$?" = 2 ] && return 2
  884. # Many daemons don't delete their pidfiles when they exit.
  885. rm -f $PIDFILE-$c.pid
  886. done
  887. return "$RETVAL"
  888. }
  889.  
  890. #
  891. # Function that sends a SIGHUP to the daemon/service
  892. #
  893. do_reload() {
  894. #
  895. # If the daemon can reload its configuration without
  896. # restarting (for example, when it is sent a SIGHUP),
  897. # then implement that here.
  898. #
  899. start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
  900. return 0
  901. }
  902.  
  903. case "$1" in
  904. start)
  905. if [ "$RUN_DAEMON" = "no" ]; then
  906. [ "$VERBOSE" != no ] && log_warning_msg "Not starting $DESC (disabled in $DEFAULTSFILE)."
  907. exit 0
  908. fi
  909.  
  910. [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
  911. do_start
  912. case "$?" in
  913. 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
  914. 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
  915. esac
  916. ;;
  917. stop)
  918. [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
  919. do_stop
  920. case "$?" in
  921. 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
  922. 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
  923. esac
  924. ;;
  925. #reload|force-reload)
  926. #
  927. # If do_reload() is not implemented then leave this commented out
  928. # and leave 'force-reload' as an alias for 'restart'.
  929. #
  930. #log_daemon_msg "Reloading $DESC" "$NAME"
  931. #do_reload
  932. #log_end_msg $?
  933. #;;
  934. restart|force-reload)
  935. #
  936. # If the "reload" option is implemented then remove the
  937. # 'force-reload' alias
  938. #
  939. if [ "$RUN_DAEMON" = "no" ]; then
  940. [ "$VERBOSE" != no ] && log_warning_msg "Not restarting $DESC (disabled in $DEFAULTSFILE)."
  941. exit 0
  942. fi
  943.  
  944. log_daemon_msg "Restarting $DESC" "$NAME"
  945. do_stop
  946. case "$?" in
  947. 0|1)
  948. do_start
  949. case "$?" in
  950. 0) log_end_msg 0 ;;
  951. 1) log_end_msg 1 ;; # Old process is still running
  952. *) log_end_msg 1 ;; # Failed to start
  953. esac
  954. ;;
  955. *)
  956. # Failed to stop
  957. log_end_msg 1
  958. ;;
  959. esac
  960. ;;
  961. status)
  962. status_of_proc "$DAEMON" "$NAME"
  963. exit $?
  964. ;;
  965.  
  966. *)
  967. #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
  968. echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
  969. exit 3
  970. ;;
  971. esac
  972.  
  973. :
  974.  
  975. ---------------------------------
  976. cambiar permisos
  977. ---------------------------------
  978.  
  979. sudo chmod +x /etc/init.d/privoxy
  980.  
  981.  
  982. -----------------------------------
  983. Configuracion privoxy
  984.  
  985. Agregar hasta abajo
  986.  
  987.  
  988. gedit /etc/privoxy/config
  989.  
  990.  
  991. user-manual /usr/share/doc/privoxy/user-manual
  992. confdir /etc/privoxy
  993. actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on.
  994. actionsfile default.action # Main actions file
  995. actionsfile user.action # User customizations
  996. filterfile default.filter
  997. logfile logfile
  998. toggle 1
  999. enable-remote-toggle 0
  1000. enable-remote-http-toggle 0
  1001. enable-edit-actions 0
  1002. enforce-blocks 0
  1003. buffer-limit 4096
  1004. forwarded-connect-retries 0
  1005. accept-intercepted-requests 0
  1006. allow-cgi-request-crunching 0
  1007. split-large-forms 0
  1008. keep-alive-timeout 5
  1009. socket-timeout 300
  1010. handle-as-empty-doc-returns-ok 1
  1011.  
  1012. ----------------------------------
  1013.  
  1014. iniciando privoxy
  1015.  
  1016. sudo /etc/init.d/privoxy start
  1017.  
  1018. ---------------------------------------------
  1019.  
  1020. gedit /etc/squid3/squid.conf
  1021.  
  1022. -------------------------------------------
  1023.  
  1024. Agregar esto hasta el final
  1025.  
  1026. ----------------------------------------------
  1027. acl all src all
  1028. acl manager proto cache_object
  1029. acl localhost src 127.0.0.1/32 ::1
  1030. acl to_localhost dst 127.0.0.0/9 0.0.0.0/32 ::1
  1031.  
  1032. acl SSL_ports port 443
  1033. acl Safe_ports port 80 # http
  1034. acl Safe_ports port 21 # ftp
  1035. acl Safe_ports port 443 # https
  1036. acl Safe_ports port 70 # gopher
  1037. acl Safe_ports port 210 # wais
  1038. acl Safe_ports port 1025-65535 # unregistered ports
  1039. acl Safe_ports port 280 # http-mgmt
  1040. acl Safe_ports port 488 # gss-http
  1041. acl Safe_ports port 591 # filemaker
  1042. acl Safe_ports port 777 # multiling http
  1043. acl CONNECT method CONNECT
  1044.  
  1045. http_access allow manager localhost
  1046. http_access deny manager
  1047. http_access deny !Safe_ports
  1048. http_access deny CONNECT !SSL_ports
  1049. http_access allow localhost
  1050. http_access deny all
  1051.  
  1052. http_port 3128
  1053.  
  1054. hierarchy_stoplist cgi-bin ?
  1055.  
  1056. coredump_dir /var/spool/squid
  1057.  
  1058. refresh_pattern ^ftp: 1440 20% 10080
  1059. refresh_pattern ^gopher: 1440 0% 1440
  1060. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  1061. refresh_pattern . 0 20% 4320
  1062.  
  1063.  
  1064. cache_peer localhost parent 11000 0 round-robin no-query
  1065. cache_peer localhost_1 parent 11010 0 round-robin no-query
  1066. cache_peer localhost_2 parent 11020 0 round-robin no-query
  1067. cache_peer localhost_3 parent 11030 0 round-robin no-query
  1068. cache_peer localhost_4 parent 11040 0 round-robin no-query
  1069. cache_peer localhost_5 parent 11050 0 round-robin no-query
  1070. cache_peer localhost_6 parent 11060 0 round-robin no-query
  1071. cache_peer localhost_7 parent 11070 0 round-robin no-query
  1072. cache_peer localhost_8 parent 11080 0 round-robin no-query
  1073. cache_peer localhost_9 parent 11090 0 round-robin no-query
  1074.  
  1075. never_direct allow all
  1076. always_direct deny all
  1077. forwarded_for off
  1078.  
  1079. --------------------------------------
  1080.  
  1081. configurando squid3
  1082.  
  1083. ---------------------------------------
  1084.  
  1085. sudo /etc/init.d/squid3 stop
  1086. sudo squid3 -f /etc/squid3/squid.conf -z
  1087. sudo /etc/init.d/squid3 start
  1088.  
  1089. -------------------------------
  1090.  
  1091. Configurar los host
  1092.  
  1093. ------------------------------------
  1094.  
  1095. gedit /etc/hosts
  1096.  
  1097. 127.0.0.1 localhost #
  1098. 127.0.0.1 localhost_1
  1099. 127.0.0.1 localhost_2
  1100. 127.0.0.1 localhost_3
  1101. 127.0.0.1 localhost_4
  1102. 127.0.0.1 localhost_5
  1103. 127.0.0.1 localhost_6
  1104. 127.0.0.1 localhost_7
  1105. 127.0.0.1 localhost_8
  1106. 127.0.0.1 localhost_9
  1107.  
  1108. agrega estas lineas sin eliminar todo el contenido dejar instacto
  1109. el nombre de tu host por ejemplo
  1110.  
  1111. 127.0.0.1 kali No eliminar tu host "ejemplo"
  1112.  
  1113. solo agrega las lineas de arriva
  1114.  
  1115. -----------------------------------------
  1116.  
  1117. Restart la red para efectuar los cambios
  1118. ---------------------------------------
  1119.  
  1120. sudo service networking restart
  1121.  
  1122. ---------------------------------------
  1123.  
  1124.  
  1125. Para usar en firefox
  1126.  
  1127. Preferencias / red / configurar / configuracion manual de proxy
  1128. proxy : localhost puerto: 3128
  1129.  
  1130. marcar la casilla . Usar el mismo proxy globalmente
  1131.  
  1132. Aceptar
  1133.  
  1134. ---------------------
  1135.  
  1136. Los procesos funcionan perfectamente 10 a 15 segundos
  1137. se recomienda usar duckduckgo ,
  1138.  
  1139.  
  1140.  
  1141.  
  1142. -------------------------------------------------------------------------------------------
  1143. | |
  1144. | COMENSANDO CONFIGURACION TOR DOMAIN FLUX |
  1145. -------------------------------------------------------------------------------------------
  1146.  
  1147. -----------------------------------------------------------------
  1148.  
  1149. AES Encrypt
  1150.  
  1151. -----------------------------------------------------------------
  1152.  
  1153. Verifica que todo trabaje correctamente para Encryptar la coneccion saliente
  1154.  
  1155. Encrypt AES Code: https://www.sendspace.com/file/7clzk4
  1156.  
  1157. puerto sera cambiado a puerto de |3128 a 9999 |
  1158. proxy : localhost puerto: 9999
  1159.  
  1160.  
  1161. ------------------------------------------------------------------
  1162. redireccion iptables |invisible proxy |comienso Tor Domain Flux
  1163. ------------------------------------------------------------------
  1164.  
  1165. iptables -t nat -A PREROUTING -i wlan1 -p tcp --dport 80 -j DNAT --to 192.168.1.1:3128
  1166. iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j REDIRECT --to-port 3128
  1167.  
  1168. -------------------------------------------------------------------
  1169. cambiando apache de puerto
  1170.  
  1171. Change apache port 8080
  1172. service apache2 start
  1173.  
  1174. -----------------------------------------------------------------------
  1175.  
  1176. cONFIGURANDO HIDDEN SERVICE A APACHE
  1177. -----------------------------------------------------------------------
  1178.  
  1179. TOR - SQUID3 - PRIVOXY - ENCRYPT AES + ROUTING + HIDEN SERVICE .onion
  1180.  
  1181. contact , work perfect cybercrimen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement