Kali 回退 Firefox 到36.0版本

折腾了一阵子,终于研究出如何正确回退 kali 的 firefox,接下来让我全盘托出!

 

目录

1.下载要回退版本的源代码

2.卸载原来的firefox

3.将解压缩后的文件夹转移到 /opt/ 下

4.导入密钥Key

5.更新apt资源包

6.下载 firefox36.0 安装包

7.安装 firefox36.0:

8.配置默认 firefox36.0 为默认浏览器

9.Done


环境:

kali虚拟机:

kali@attacker:~$ uname -a
Linux attacker.dvssc.com 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux

 

1.下载要回退版本的源代码

例如,使用当前的firefox下载需要回退的版本36.0的源代码。进入网址:

请根据操作系统进行选择:

32位:

http://ftp.mozilla.org/pub/firefox/releases/36.0/linux-i686/zh-CN/

 

64位:

http://ftp.mozilla.org/pub/firefox/releases/36.0/linux-x86_64/zh-CN/

Kali 回退 Firefox 到36.0版本

直接点击【firefox-36.0.tar.bz2】进行下载。默认会下载到路径:

/home/kali/Downloads/

 

下载后使用终端进行解压缩:

kali@attacker:~/Downloads$ tar -xvjf firefox-36.0.tar.bz2
 

 

2.卸载原来的firefox

1)先查找已经安装的firefox及其扩展:

kali@attacker:~$ dpkg --get-selections | grep firefox
firefox-esr                                     install

 

2)卸载所有之前安装的firefox相关的内容:

kali@attacker:~$ sudo apt-get purge firefox-esr 
[sudo] password for kali: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bluez-firmware firmware-atheros firmware-brcm80211 firmware-intel-sound firmware-iwlwifi firmware-libertas firmware-realtek firmware-ti-connectivity
  firmware-zd1211 libexo-1-0 libindicator3-7 libjsoncpp1 libmpdec2 libprotobuf22 openjdk-8-jre python3-chameleon python3-flask-restless
  python3-mimeparse python3-mimerender python3-waitress python3-webtest python3-zope.component python3-zope.event python3-zope.hookable testdisk tftp
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  kali-defaults-desktop kali-desktop-core libcompfaceg1 xemacs21-basesupport xemacs21-bin xemacs21-nomule xemacs21-support
Suggested packages:
  kali-root-login xemacs21-supportel
The following packages will be REMOVED:
  firefox-esr*
The following NEW packages will be installed:
  kali-defaults-desktop libcompfaceg1 xemacs21-basesupport xemacs21-bin xemacs21-nomule xemacs21-support
The following packages will be upgraded:
  kali-desktop-core
1 upgraded, 6 newly installed, 1 to remove and 147 not upgraded.
Need to get 22.1 MB of archives.
After this operation, 125 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 xemacs21-support all 21.4.24-9 [4,181 kB]
Get:2 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 xemacs21-bin amd64 21.4.24-9 [398 kB]
Get:3 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 libcompfaceg1 amd64 1:1.5.2-5+b2 [13.6 kB]                                             
Get:4 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 xemacs21-basesupport all 2009.02.17.dfsg.2-5 [15.9 MB]                                 
Get:5 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 xemacs21-nomule amd64 21.4.24-9 [1,513 kB]                                             
Get:6 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 kali-defaults-desktop all 2020.4.10 [10.6 kB]                                          
Get:7 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 kali-desktop-core amd64 2020.4.8 [12.6 kB]                                             
Fetched 22.1 MB in 15s (1,430 kB/s)                                                                                                                     
Selecting previously unselected package xemacs21-support.
(Reading database ... 289010 files and directories currently installed.)
Preparing to unpack .../xemacs21-support_21.4.24-9_all.deb ...
Unpacking xemacs21-support (21.4.24-9) ...
Selecting previously unselected package xemacs21-bin.
Preparing to unpack .../xemacs21-bin_21.4.24-9_amd64.deb ...
Unpacking xemacs21-bin (21.4.24-9) ...
Selecting previously unselected package libcompfaceg1.
Preparing to unpack .../libcompfaceg1_1%3a1.5.2-5+b2_amd64.deb ...
Unpacking libcompfaceg1 (1:1.5.2-5+b2) ...
Selecting previously unselected package xemacs21-basesupport.
Preparing to unpack .../xemacs21-basesupport_2009.02.17.dfsg.2-5_all.deb ...
Unpacking xemacs21-basesupport (2009.02.17.dfsg.2-5) ...
Selecting previously unselected package xemacs21-nomule.
Preparing to unpack .../xemacs21-nomule_21.4.24-9_amd64.deb ...
Unpacking xemacs21-nomule (21.4.24-9) ...
dpkg: firefox-esr: dependency problems, but removing anyway as you requested:
 kali-desktop-core depends on firefox-esr | firefox | www-browser; however:
  Package firefox-esr is to be removed.
  Package firefox is not installed.
  Package www-browser is not installed.
  Package xemacs21-nomule which provides www-browser is not configured yet.
  Package firefox-esr which provides www-browser is to be removed.
 kali-desktop-core depends on firefox-esr | firefox | www-browser; however:
  Package firefox-esr is to be removed.
  Package firefox is not installed.
  Package www-browser is not installed.
  Package xemacs21-nomule which provides www-browser is not configured yet.
  Package firefox-esr which provides www-browser is to be removed.

(Reading database ... 294855 files and directories currently installed.)
Removing firefox-esr (78.3.0esr-2) ...
Removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr'
Selecting previously unselected package kali-defaults-desktop.
(Reading database ... 294763 files and directories currently installed.)
Preparing to unpack .../kali-defaults-desktop_2020.4.10_all.deb ...
Unpacking kali-defaults-desktop (2020.4.10) ...
Preparing to unpack .../kali-desktop-core_2020.4.8_amd64.deb ...
Unpacking kali-desktop-core (2020.4.8) over (2020.3.9) ...
Setting up xemacs21-basesupport (2009.02.17.dfsg.2-5) ...
Setting up libcompfaceg1 (1:1.5.2-5+b2) ...
Setting up kali-defaults-desktop (2020.4.10) ...
Setting up xemacs21-support (21.4.24-9) ...
Setting up xemacs21-bin (21.4.24-9) ...
update-alternatives: using /usr/lib/xemacs-21.4.24/x86_64-linux-gnu/movemail to provide /usr/bin/movemail (movemail) in auto mode
update-alternatives: using /usr/lib/xemacs-21.4.24/x86_64-linux-gnu/mmencode to provide /usr/bin/mmencode (mmencode) in auto mode
update-alternatives: using /usr/bin/b2m.xemacs21 to provide /usr/bin/b2m (b2m) in auto mode
update-alternatives: using /usr/bin/etags.xemacs21 to provide /usr/bin/etags (etags) in auto mode
update-alternatives: using /usr/bin/gnuclient.xemacs21 to provide /usr/bin/gnuclient (gnuclient) in auto mode
update-alternatives: using /usr/bin/gnuattach.xemacs21 to provide /usr/bin/gnuattach (gnuattach) in auto mode
update-alternatives: using /usr/bin/gnudoit.xemacs21 to provide /usr/bin/gnudoit (gnudoit) in auto mode
update-alternatives: using /usr/bin/rcs-checkin.xemacs21 to provide /usr/bin/rcs-checkin (rcs-checkin) in auto mode
update-alternatives: using /usr/bin/ellcc.xemacs21 to provide /usr/bin/ellcc (ellcc) in auto mode
Setting up xemacs21-nomule (21.4.24-9) ...
update-alternatives: using /usr/bin/xemacs21-nomule to provide /usr/bin/xemacs21 (xemacs21) in auto mode
Install emacsen-common for xemacs21
emacsen-common: Handling install of emacsen flavor xemacs21
Loading /usr/share/emacsen-common/debian-startup...
Loading 00debian...
Compiling /usr/share/xemacs21/site-lisp/debian-startup.el...
Wrote /usr/share/xemacs21/site-lisp/debian-startup.elc
Done
Install dictionaries-common for xemacs21
install/dictionaries-common: Byte-compiling for emacsen flavour xemacs21
Compiling /usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell.el...
Wrote /usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell.elc
Compiling /usr/share/xemacs21/site-lisp/dictionaries-common/ispell.el...
Wrote /usr/share/xemacs21/site-lisp/dictionaries-common/ispell.elc
Compiling /usr/share/xemacs21/site-lisp/dictionaries-common/flyspell.el...
Wrote /usr/share/xemacs21/site-lisp/dictionaries-common/flyspell.elc
Done
Processing triggers for kali-menu (2021.1.0) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libglib2.0-0:amd64 (2.66.2-1) ...
Processing triggers for man-db (2.9.3-2) ...
Setting up kali-desktop-core (2020.4.8) ...
(Reading database ... 294768 files and directories currently installed.)
Purging configuration files for firefox-esr (78.3.0esr-2) ...

 

 

3.将解压缩后的文件夹转移到 /opt/ 下

kali@attacker:~/Downloads$ sudo mv firefox /opt/

 

 

4.导入密钥Key

kali@attacker:~/Downloads$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2667CA5C
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.st22VvdWBZ/gpg.1.sh --recv-keys --keyserver keyserver.ubuntu.com 2667CA5C
gpg: key B7B9C16F2667CA5C: public key "Daniel Folkinshteyn (Ubuntuzilla signing key) <nanotube@users.sourceforge.net>" imported
gpg: Total number processed: 1
gpg:               imported: 1

 

 

5.更新apt资源包

kali@attacker:~/Downloads$ sudo apt update
Get:1 https://nchc.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all InRelease [3,390 B]
Get:2 https://nchc.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all/main amd64 Packages [1,093 B]
Get:3 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease [30.5 kB]                                                                               
Get:4 http://mirrors.neusoft.edu.cn/kali kali-rolling/main amd64 Packages [17.0 MB]                                                                     
Get:5 http://mirrors.neusoft.edu.cn/kali kali-rolling/contrib amd64 Packages [105 kB]                                                                   
Get:6 http://mirrors.neusoft.edu.cn/kali kali-rolling/non-free amd64 Packages [202 kB]                                                                  
Fetched 17.4 MB in 17s (1,021 kB/s)                                                                                                                     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
486 packages can be upgraded. Run 'apt list --upgradable' to see them.

 

6.下载 firefox36.0 安装包

32 位:

sudo wget http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_i386.deb

 

64 位:

kali@attacker:~/Downloads$ sudo wget sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb
--2020-12-13 00:53:40--  http://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb
Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb [following]
--2020-12-13 00:53:41--  https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb/ [following]
--2020-12-13 00:53:43--  https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb/
Reusing existing connection to sourceforge.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb/download [following]
--2020-12-13 00:53:43--  https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb/download
Reusing existing connection to sourceforge.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb?r=&ts=1607838823&use_mirror=master [following]
--2020-12-13 00:53:43--  https://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb?r=&ts=1607838823&use_mirror=master
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://master.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb?viasf=1 [following]
--2020-12-13 00:53:44--  https://master.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_36.0-0ubuntu1_amd64.deb?viasf=1
Resolving master.dl.sourceforge.net (master.dl.sourceforge.net)... 216.105.38.12
Connecting to master.dl.sourceforge.net (master.dl.sourceforge.net)|216.105.38.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48800542 (47M) [application/octet-stream]
Saving to: ‘firefox-mozilla-build_36.0-0ubuntu1_amd64.deb’

firefox-mozilla-build_36.0-0ubuntu1_am 100%[=========================================================================>]  46.54M  74.8KB/s    in 13m 48s 

2020-12-13 01:07:39 (57.6 KB/s) - ‘firefox-mozilla-build_36.0-0ubuntu1_amd64.deb’ saved [48800542/48800542]

 

7.安装 firefox36.0:

32 位

cd /home/kali/Downloads/ && sudo dpkg -i firefox-mozilla-build_36.0-0ubuntu1_i386.deb

64 位

cd /home/kali/Downloads/ && sudo dpkg -i firefox-mozilla-build_36.0-0ubuntu1_amd64.deb

 

8.配置默认 firefox36.0 为默认浏览器

1)关闭目前打开的浏览器;

 

2)再重新打开浏览器,弹出提示:

Failed to execute default Web Browser.

Kali 回退 Firefox 到36.0版本 ​ 

 

3)配置 firefox 为默认浏览器:

a)kali --> b)Settings Manager --> c)Preferred Applications -->  d)Debian Sensible Browser --> e)Mozilla Firefox --> f)Close

Kali 回退 Firefox 到36.0版本 ​

Kali 回退 Firefox 到36.0版本 ​

 

Kali 回退 Firefox 到36.0版本 ​

 

9.Done

Kali 回退 Firefox 到36.0版本

 

参考文章:

https://askubuntu.com/questions/661186/how-to-install-previous-firefox-version

https://miloserdov.org/?p=2848

https://blog.csdn.net/Jugger_Am/article/details/83420273

https://www.cnblogs.com/bymo/p/9046586.html 

上一篇:使用FRP内网穿透校园网


下一篇:搭建k8s单节点集群环境