烽火HG6142A 破解超级管理员密码 改桥接

型号:烽火 吉比特HG6142A
运营商:山东联通
1、取得光猫MAC地址

电脑终端输入命令arp -a 192.168.1.1返回的物理地址即为光猫MAC地址,假设地址为95-6e-78-4e-88-80

这个地址我在光猫背面没找到(可自行查看,如果背面有就省略这一步)

image.png1679287317824170.png

 

3、登录telnet获取超级密码

首先,确保你的电脑已开启Telnet服务(请自行baidu开启方法),然后输入telnet 192.168.1.1进入telnet

账号root(不对就试试admin),密码是Fh@mac后六位(注意大小写),如第1步的:Fh@4E8880输入密码是不显示的,输完直接回车(显示/var #就是登录成功)

然后输入命令load_cli factory,进入工厂模式

最后输入显示管理员密码命令show admin_pwd,显示管理员密码

admin_pwd=后面的就是超级密码

image.png



4.登录光猫,修改拨号方式

浏览器打开192.168.1.1/cu.html 维护管理员登录界面,用获取的超级密码登录即可。

登录的时候不要直接用192.168.1.1登录,那个写的管理员其实是普通用户。超级管理员登录界面写的是维护管理员

然后把拨号方式由上网改为桥接后保存,只修改这一个选项,别的不要动。(修改前最好截图保存原始参数)

 

 

http://192.168.1.1/cu.html

超级管理员账号: root

超级管理员密码:cuadmin32925298


manjaro新手入门使用方法

本文旨在为manjaro新手朋友解决系统入门使用问题,搭配大海视频教程食用更佳。

1、换源

sudo pacman-mirrors -i -c China -m rank

这里推荐中科大源ustc

pacman文件配置

sudo nano /etc/pacman.conf

在末尾插入

[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

2、设置软件商店aur软件库

3、安装GPG Key

sudo pacman -S archlinuxcn-keyring

4、更新系统(这一步可以经常做)

sudo pacman -Syyu

5、双系统下系统时间统一(非必须)

timedatectl set-local-rtc 1 --adjust-system-clock
timedatectl set-ntp 0

6、寻找你需要的软件

https://wiki.archlinux.org/

软件安装方法:

(1)pacman安装:

sudo pacman -S 软件名

(2)yay安装:

yay -s 软件名

使用yay 需要先安装yay

sudo pacman -S yay

(3)添加删除软件搜索:

7、软件推荐

小企鹅输入法(free Chinese Input Toy for X):fcitx   和  fcitx5

QQ:deepin-wine-qq

微信:deepin-wine-wechat

Chrome浏览器:google-chrome

网易云音乐:netease-cloud-music 

wps:wps-office

迅雷:deepin.com.thunderspeed 

百度网盘:deepin-wine-baidupan

https://wiki.archlinuxcn.org/wiki/%E9%A6%96%E9%A1%B5

谷歌翻译退出中国后该如何恢复 Chrome 翻译的正常使用?

下面是获取可用 IP 地址以及修改 Windows 系统和 macOS 系统 hosts 文件的自动化脚本代码:

只需一键即可完成所有修改步骤。

点击下载脚本(把.txt修改成.bat)

恢复谷歌翻译.txt

把代码保存为bat’文件,最后以管理员身份运行脚本即可完成!

:: Copyright (c)2022 https://bookfere.com
:: 这是一个修复谷歌翻译并使其可用的批处理脚本
:: 在中国大陆,如果您遇到任何问题,请访问一下页面:
:: https://bookfere.com/post/1020.html
@echo offf
setlocal enabledelayedexpansion
chcp 437 >NULL
set "source_domain=google.cn"
set "target_domain=translate.googleapis.com"
set "hosts_file=C:\Windows\System32\drivers\etc\hosts"
for /f "skip=4 tokens=2" %%a in ('"nslookup %source_domain% 2>NUL"') do set ip=%%a
set "old_rule=null"
set "new_rule=%ip% %target_domain%"
set "comment=# Fix Google Translate CN"
for /f "tokens=*" %%i in ('type %hosts_file%') do (
    set "line=%%i"
    :: Retrieve the rule If the target domain exists.
    if not "!line:%target_domain%=!"=="%%i" set "old_rule=%%i"
)
if not "%old_rule%"=="null" (
    echo A rule has been added to the hosts file. 
    echo [1] Update [2] Delete
    set /p action="Enter a number to choose an action: "
    if "!action!"=="1" (
        if not "%old_rule%"=="%new_rule%" (
            echo Deleting the rule "%old_rule%"
            echo Adding the rule "%new_rule%"
            set "new_line=false"
            for /f "tokens=*" %%i in ('type %hosts_file% ^| find /v /n "" ^& break ^> %hosts_file%') do (
                set "rule=%%i"
                set "rule=!rule:*]=!"
                if "%old_rule%"=="!rule!" set "rule=%new_rule%"
                if "!new_line!"=="true" >>%hosts_file% echo.
                >>%hosts_file% <NUL set /p="!rule!"
                set "new_line=true"
            )
        ) else (
            echo The rule already exists, nothing to do.
        )
    )
    if "!action!"=="2" (
        echo Deleting the rule "%old_rule%"
        set "new_line=false"
        for /f "tokens=*" %%i in ('
            type "%hosts_file%" ^| findstr /v /c:"%comment%" ^| findstr /v "%target_domain%" ^| find /v /n "" ^& break ^> "%hosts_file%"
        ') do (
            set "line=%%i"
            set "line=!line:*]=!"
            if "!new_line!"=="true" >>%hosts_file% echo.
            >>%hosts_file% <NUL set /p="!line!"
            set "new_line=true"
        )
    )
) else (
    echo Adding the rule "%new_rule%"
    echo.>>%hosts_file%
    echo %comment%>>%hosts_file%
    <NUL set /p="%new_rule%">>%hosts_file%
)
echo Done.
pause

如果你用的是 macOS 系统

 

打开“终端”,拷贝以下命令并将其粘贴到终端上,按回车,输入你的系统密码,再按回车。注意,输入密码时是不显示任何信息的,只要确保输入的密码是正确的就可以。

sudo bash -c "$(curl -skL https://fere.link/ow3cld)"

如果看到如下所示提示,表示规则添加成功,也就可以正常使用 Chrome 的谷歌翻译功能了。

Adding the rule "142.250.70.195 translate.googleapis.com"
Done.

* 提示:终端打开的方式为,打开“访达(Finder)”,在左侧边栏找到并进入“应用程序(Applications)”文件夹,在里面找到并进入“实用工具(Utilities)”文件夹,在这里面就可以找到“终端(Terminal)”,双击打开。


* 注意:由于代码是托管在 GitHub 的,因此在请求 URL 的时候可能会遇到网络不通畅的情况,如果运行命令后长时间没反应,建议按 Ctrl + C 中止运行,然后再重新运行一遍上面的命令,一般最多尝试两三次。


此命令可以重复使用。添加规则后再次使用时会出现交互提示信息,输入 1 会尝试更新已添加规则的 IP 地址,如果没有变化则不做任何修改,输入 2 会删除已添加的规则。