Поиск по блогу

четверг, 15 мая 2014 г.

Обновление Kali и вопросы доустановки программ

Вторая установка дистрибутива на 16Г флешку прошла успешно. Поскольку делать это приходится нечасто, то время сэкономят инструкции, например такие, как найти программу для скринкаста. Если посчитать все время, которое я потратил на поиск таких программ...
Этот черновик я публикую на месяц позже. Сегодня я отказался от идеи - работать только с флешки. Оказалось, что установить Kali (Debian) как вторую OS очень просто. А тогда я еще не столкнулся с "тормозами" и надеялся на технологию "persistence"

Что я уже сделал

Настройка persistence... свой старый пост немного подправил
Настройка языка, раскладки клавиатуры
Ввел пароль для подключения к интернет
Обновил (300mb) sudo apt-get update, sudo apt-get upgrade (подробнее см. apt-get -h) Установка ipython sudo apt-get install ipython-notebook
Плагин для браузера flash shock... нашелся в GUI "Add/remove sofware"

Подключение нового репозитория (Tor)

Будем следовать инструкции из документации Tor А при установке будем использовать приемы из http://resources.infosecinstitute.com/tor-part-1/
Этот пост я пишу с Debian, поэтому интересно проверить и взаимодействие с системой... Сначала проверим, как выполняются команды отсюда HowTo: Find Out My Linux Distribution Name and Version
In [1]:
!uname -a
Linux kali 3.12-kali1-686-pae #1 SMP Debian 3.12.6-2kali1 (2014-01-06) i686 GNU/Linux


In [2]:
!cat /etc/*-release
PRETTY_NAME="Kali GNU/Linux 1.0"

NAME="Kali GNU/Linux"

ID=kali

VERSION="1.0"

VERSION_ID="1.0"

ID_LIKE=debian

ANSI_COLOR="1;31"

HOME_URL="http://www.kali.org/"

SUPPORT_URL="http://forums.kali.org/"

BUG_REPORT_URL="http://bugs.kali.org/"


In [3]:
!lsb_release -a
No LSB modules are available.

Distributor ID: Debian

Description: Debian GNU/Linux Kali Linux 1.0.6

Release: Kali Linux 1.0.6

Codename: n/a


Пустячок, а приятно, в Windows системные команды притормаживают..., а здесь скорость почти, как в консоли. Однако, чтобы определить кличку репозитория пришлось еще немного погуглить... Debian 3.12.6-2

А теперь wheezy, я сказал: "wheezy" !!!

Сомнений по поводу клички не осталось, после того, как нашел репозиторий http://deb.torproject.org/torproject.org/dists/wheezy/main/
Прежде чем дописать в конец файла две строчки, проверим, существет ли файл ... и что в нем:
In [4]:
cat /etc/apt/sources.list
deb http://http.kali.org/kali kali main contrib non-free

deb-src http://http.kali.org/kali kali main contrib non-free

deb http://security.kali.org/kali-security kali/updates main contrib non-free

deb-src http://security.kali.org/kali-security kali/updates main contrib non-free


Пожалуй, что это тот самый файл со списком репозиториев, инструкция не врет, однако...
In [5]:
echo "deb http://deb.torproject.org/torproject.org wheezy main">> /etc/apt/sources.list
  File "<ipython-input-5-b49f5c575b18>", line 1
    echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
                                                                  ^
SyntaxError: invalid syntax
In []:
Попробовал из консоли, записалось ... Вослицательный знак забыл ! Пора завязывать на сегодня...
In [6]:
!echo "deb-src http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
In [7]:
!cat /etc/apt/sources.list
deb http://http.kali.org/kali kali main contrib non-free

deb-src http://http.kali.org/kali kali main contrib non-free

deb http://security.kali.org/kali-security kali/updates main contrib non-free

deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

deb http://deb.torproject.org/torproject.org wheezy main

deb-src http://deb.torproject.org/torproject.org wheezy main


Then add the gpg key used to sign the packages by running the following commands at your command prompt:
In [9]:
!gpg --keyserver keys.gnupg.net --recv 886DDD89
!gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
gpg: directory `/root/.gnupg' created

gpg: new configuration file `/root/.gnupg/gpg.conf' created

gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run

gpg: keyring `/root/.gnupg/secring.gpg' created

gpg: keyring `/root/.gnupg/pubring.gpg' created

gpg: requesting key 886DDD89 from hkp server keys.gnupg.net

gpg: /root/.gnupg/trustdb.gpg: trustdb created

gpg: key 886DDD89: public key "deb.torproject.org archive signing key" imported

gpg: no ultimately trusted keys found

gpg: Total number processed: 1

gpg:               imported: 1  (RSA: 1)

OK


In [11]:
!apt-get update
0% [Working]
            
Get:1 http://deb.torproject.org wheezy Release.gpg [490 B]


            
99% [Waiting for headers] [Waiting for headers] [1 Release.gpg 490 B/490 B 100%
                                                                               
99% [Waiting for headers] [Waiting for headers]
99% [Waiting for headers] [Waiting for headers]
                                               
99% [Waiting for headers]
                         
Hit http://deb.torproject.org wheezy Release


                         
99% [Connecting to kali.prf.jcu.cz (160.217.208.47)]
                                                    
99% [Release gpgv 3,707 B] [Connecting to kali.prf.jcu.cz (160.217.208.47)]
                                                                           
99% [Connecting to kali.prf.jcu.cz (160.217.208.47)]
                                                    
Hit http://security.kali.org kali/updates Release.gpg


                                                    
99% [Waiting for headers]
                         
Hit http://deb.torproject.org wheezy/main Sources


                         
99% [Waiting for headers] [Waiting for headers]
                                               
Hit http://http.kali.org kali Release.gpg


99% [Waiting for headers] [Waiting for headers]
                                               
Hit http://deb.torproject.org wheezy/main i386 Packages


99% [Waiting for headers] [Waiting for headers]
99% [Waiting for headers] [Waiting for headers]
                                               
Hit http://security.kali.org kali/updates Release


99% [Waiting for headers] [Waiting for headers]
                                               
99% [Release gpgv 11.0 kB] [Waiting for headers] [Waiting for headers]
                                                                      
99% [Release gpgv 11.0 kB] [Waiting for headers]
                                                
97% [Waiting for headers] [Waiting for headers]
                                               
Hit http://http.kali.org kali Release


97% [Waiting for headers] [Waiting for headers]
                                               
97% [Release gpgv 21.1 kB] [Waiting for headers] [Waiting for headers]
                                                                      
95% [Waiting for headers] [Waiting for headers]
95% [Waiting for headers] [Waiting for headers]
                                               
95% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://security.kali.org kali/updates/main Sources


95% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://http.kali.org kali/main Sources


95% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
95% [Waiting for headers] [Waiting for headers]
                                               
95% [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting 
                                                                               
Hit http://security.kali.org kali/updates/contrib Sources


                                                                               
96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://http.kali.org kali/contrib Sources


96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
96% [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting 
                                                                               
Hit http://security.kali.org kali/updates/non-free Sources


                                                                               
96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://http.kali.org kali/non-free Sources


96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
96% [Waiting for headers] [Waiting for headers]
                                               
96% [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting 
                                                                               
Hit http://security.kali.org kali/updates/main i386 Packages


                                                                               
96% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://http.kali.org kali/main i386 Packages


97% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Ign http://deb.torproject.org wheezy/main Translation-en_US


                                                                     
97% [Waiting for headers] [Waiting for headers]
                                               
97% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
97% [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting 
                                                                               
Hit http://security.kali.org kali/updates/contrib i386 Packages


                                                                               
97% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Ign http://deb.torproject.org wheezy/main Translation-en


97% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://http.kali.org kali/contrib i386 Packages


                                                                     
97% [Waiting for headers] [Waiting for headers]
                                               
97% [Waiting for headers]
                         
97% [Waiting for headers] [Waiting for headers] [Waiting for headers]
                                                                     
Hit http://security.kali.org kali/updates/non-free i386 Packages


                                                                     
98% [Waiting for headers] [Waiting for headers]
                                               
Hit http://http.kali.org kali/non-free i386 Packages


98% [Waiting for headers] [Waiting for headers]
98% [Waiting for headers] [Waiting for headers]
98% [Waiting for headers] [Waiting for headers]
98% [Waiting for headers] [Waiting for headers]
98% [Waiting for headers] [Waiting for headers]
98% [Waiting for headers] [Waiting for headers]
                                               
98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/contrib Translation-en_US


98% [Waiting for headers]                                             79 B/s 0s
                                                                               
Ign http://http.kali.org kali/contrib Translation-en_US


98% [Waiting for headers]                                             79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/contrib Translation-en


98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://http.kali.org kali/contrib Translation-en


98% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/main Translation-en_US


99% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://http.kali.org kali/main Translation-en_US


99% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/main Translation-en


99% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://http.kali.org kali/main Translation-en


99% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/non-free Translation-en_US


99% [Waiting for headers] [Waiting for headers]                       79 B/s 0s
                                                                               
Ign http://http.kali.org kali/non-free Translation-en_US


100% [Waiting for headers]                                            79 B/s 0s
                                                                               
Ign http://security.kali.org kali/updates/non-free Translation-en


100% [Waiting for headers]                                            79 B/s 0s
                                                                               
Ign http://http.kali.org kali/non-free Translation-en


100% [Working]                                                        79 B/s 0s
                                                                               
Fetched 490 B in 9s (54 B/s)


Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... 15%

Reading package lists... 29%

Reading package lists... 43%

Reading package lists... 57%

Reading package lists... 69%

Reading package lists... 77%

Reading package lists... 88%

Reading package lists... 89%

Reading package lists... 89%

Reading package lists... 89%

Reading package lists... 89%

Reading package lists... 90%

Reading package lists... 90%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 94%

Reading package lists... Done



In [*]:
!apt-get install vidalia deb.torproject.org-keyring
Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done



Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... 98%

Building dependency tree       



Reading state information... 0%

Reading state information... 0%

Reading state information... Done


Suggested packages:

  iceweasel-torbutton

The following NEW packages will be installed:

  deb.torproject.org-keyring vidalia

0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded.

Need to get 3,073 kB of archives.

After this operation, 6,099 kB of additional disk space will be used.



0% [Working]
            
Get:1 http://deb.torproject.org/torproject.org/ wheezy/main deb.torproject.org-keyring all 2012.08.29 [4,138 B]


            
0% [1 deb.torproject.org-keyring 1,142 B/4,138 B 28%]
                                                     
0% [Working]
            
Get:2 http://deb.torproject.org/torproject.org/ wheezy/main vidalia i386 0.2.21-1~wheezy [3,069 kB]


            
0% [2 vidalia 1,138 B/3,069 kB 0%]
                                  
5% [2 vidalia 149 kB/3,069 kB 5%]
                                 
10% [2 vidalia 312 kB/3,069 kB 10%]
16% [2 vidalia 479 kB/3,069 kB 16%]
19% [2 vidalia 583 kB/3,069 kB 19%]
26% [2 vidalia 802 kB/3,069 kB 26%]
32% [2 vidalia 966 kB/3,069 kB 31%]
                                   
36% [2 vidalia 1,106 kB/3,069 kB 36%]
40% [2 vidalia 1,234 kB/3,069 kB 40%]
44% [2 vidalia 1,345 kB/3,069 kB 44%]
48% [2 vidalia 1,457 kB/3,069 kB 47%]
51% [2 vidalia 1,558 kB/3,069 kB 51%]
                                     
54% [2 vidalia 1,667 kB/3,069 kB 54%]                               268 kB/s 5s
58% [2 vidalia 1,784 kB/3,069 kB 58%]                               268 kB/s 4s
61% [2 vidalia 1,860 kB/3,069 kB 61%]                               268 kB/s 4s
63% [2 vidalia 1,926 kB/3,069 kB 63%]                               268 kB/s 4s
65% [2 vidalia 2,001 kB/3,069 kB 65%]                               268 kB/s 3s
68% [2 vidalia 2,091 kB/3,069 kB 68%]                               268 kB/s 3s
71% [2 vidalia 2,184 kB/3,069 kB 71%]                               268 kB/s 3s
74% [2 vidalia 2,268 kB/3,069 kB 74%]                               268 kB/s 2s
76% [2 vidalia 2,322 kB/3,069 kB 76%]                               268 kB/s 2s
76% [2 vidalia 2,324 kB/3,069 kB 76%]                               268 kB/s 2s
76% [2 vidalia 2,324 kB/3,069 kB 76%]                               268 kB/s 2s
76% [2 vidalia 2,324 kB/3,069 kB 76%]                               268 kB/s 2s
76% [2 vidalia 2,324 kB/3,069 kB 76%]                               109 kB/s 6s
84% [2 vidalia 2,589 kB/3,069 kB 84%]                               109 kB/s 4s
87% [2 vidalia 2,656 kB/3,069 kB 87%]                               109 kB/s 3s
90% [2 vidalia 2,772 kB/3,069 kB 90%]                               109 kB/s 2s
93% [2 vidalia 2,855 kB/3,069 kB 93%]                               109 kB/s 1s
97% [2 vidalia 2,965 kB/3,069 kB 97%]                               109 kB/s 0s
99% [2 vidalia 3,044 kB/3,069 kB 99%]                               109 kB/s 0s
100% [Working]                                                      109 kB/s 0s
                                                                               
Fetched 3,073 kB in 15s (200 kB/s)

Preconfiguring packages ...

 7 [?47h [1;24r [4l [1;24r [H [2J [1;1H                                                                                 [2;1H                                                                                 [3;1H                                                                                 [4;1H                                                                                 [5;1H                                                                                 [6;1H                                                                                 [7;1H                                                                                 [8;1H                                                                                 [9;1H                                                                                 [10;1H                                                                                 [11;1H                                                                                 [12;1H                                                                                 [13;1H                                                                                 [14;1H                                                                                 [15;1H                                                                                 [16;1H                                                                                 [17;1H                                                                                 [18;1H                                                                                 [19;1H                                                                                 [20;1H                                                                                 [21;1H                                                                                 [22;1H                                                                                 [23;1H                                                                                 [24;1H                                                                                [24;79H   [4h  [4l [1;1HPackage configuration [4;2H┌──────────────────────────┤ Configuring vidalia ├──────────────────────────┐ [5;2H│ Select which users from the list below should be able to control Tor      │  [6;2H│ daemon.                                                                   │  [7;2H│                                                                           │  [8;2H│ Please restart your X sessions to apply changes before starting Vidalia.  │  [9;2H│                                                                           │  [10;2H│ For more information, please refer to                                     │  [11;2H│ /usr/share/doc/vidalia/README.Debian.gz.                                  │  [12;2H│                                                                           │  [13;2H│ Users to add to the debian-tor group:                                     │  [14;2H│                                                                           │  [15;2H[ ] kiss    [16;2H│                                                                           │  [17;2H│                                                                           │  [18;2H│                                  <Ok>                                     │  [19;2H│                                                                           │  [20;2H└───────────────────────────────────────────────────────────────────────────┘  [21;3H                                                                              [15;11H
In []:



Посты чуть ниже также могут вас заинтересовать

Комментариев нет:

Отправить комментарий