超实用的开源项目—如何将WiFi密码转成二维码进行共享

 本文链接:https://blog.csdn.net/weixin_42350212/article/details/119137701

大家好,我是Lex 喜欢欺负超人那个Lex

擅长领域:python开发、网络安全渗透、Windows域控Exchange架构

今日重点:分享一个将WiFi信息(ID+密码)转换成二维码的开源项目

先上效果 

事情是这样的

在这个二维码的时代

大街小巷到处都是各种扫一扫的二维码

今天,分享一个开源项目

可以将你输入的WiFi信息,包括WiFi密码

一键转换成二维码,打印出来,贴到墙上

 家里、公司办公室内网都可以使用

不用每次都让亲戚、朋友、同事输一遍密码,非常方便

项目结构

项目开发结构如下:基于JS等前端开发

项目下载

[root@centos7 data]# wget https://github.com/lexsaints/wifi-card/archive/refs/heads/master.zip

基于docker环境运行,非常方便,一行代码跑起来。

项目运行

#进入到下载目录
[root@centos7 data]# cd wifi-card/
#查看内容
[root@centos7 wifi-card]# ls
Dockerfile  LICENSE.md  Makefile  package.json  public  README.md  src  yarn.lock
#执行运行
[root@centos7 wifi-card]# make run

 执行make run,会开始从远程仓库下载镜像。

[root@centos7 wifi-card]# make run             
 
docker run --rm -p 8080:80 bndw/wifi-card:latest
Unable to find image 'bndw/wifi-card:latest' locally
latest: Pulling from bndw/wifi-card
540db60ca938: Pull complete 
b824a2584ece: Pull complete 
82d0e0426b2d: Pull complete 
ed76aa154407: Pull complete 
ef4cf5a20f8a: Pull complete 
9d3441de5d5e: Pull complete 
ab00b14793b5: Pull complete 
Digest: sha256:2720afa9036221c1ef892607c922b854daf7b7fc76e6d54e22e66ea6634915e5
Status: Downloaded newer image for bndw/wifi-card:latest
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2021/07/27 02:04:29 [notice] 1#1: using the "epoll" event method
2021/07/27 02:04:29 [notice] 1#1: nginx/1.20.1
2021/07/27 02:04:29 [notice] 1#1: built by gcc 10.2.1 20201203 (Alpine 10.2.1_pre1) 
2021/07/27 02:04:29 [notice] 1#1: OS: Linux 3.10.0-957.el7.x86_64
2021/07/27 02:04:29 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/07/27 02:04:29 [notice] 1#1: start worker processes
2021/07/27 02:04:29 [notice] 1#1: start worker process 31

运行成功之后,通过web端进行访问

http://localhost:8080  #默认端口,可以在配置文件中进行修改

Web端访问效果如下:

使用场景

通过这个,我们可以将任意的WiFi信息,输入进去,然后转换成二维码进行分享。

虽然,通过扫描二维码,还是会读取到密码内容。但至少是相对安全的。

毕竟,我们在各大网站,输入密码,其实浏览器F12都是可以看到的哦

 

本文链接:https://blog.csdn.net/weixin_42350212/article/details/119137701 

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值