首页 > 其他分享 >Debian初体验之基础设置

Debian初体验之基础设置

时间:2023-10-24 12:11:56浏览次数:27  
标签:username 初体验 debian sudo ng 设置 Debian aircrack

layout: 0模版
title: Debian初体验之基础设置
date: 2023-10-17 19:18:56
tags: [debian, 软路由, aircrack-ng]
categories: Debian
学习J4125软路由里面的Debian 11,包含Debian连接NAS的远程目录 尝试debian启动桌面,安装VNC远程控制,运行aircrack-ng跑包等等... Debian远程执行,连接NAS的远程目录(装载字典)

如何开启debian的ssh远程管理?

https://www.xxlxy.com/153.html

如何查看debian的磁盘信息

lsblk

debian 如何启动桌面(debian 桌面)

使用这个工具:tasksel,用来配置/安装桌面系统
选择那个一个桌面?
Gnome一步到位,不想要遇到xface的奔溃机率(踩雷,排雷)

Retrieving file 10 of 1173 (7h 12min 16s remaining)
简直搞笑了

如何Debian切换源,来加速安装?

可以通过编辑 /etc/apt/sources.list 文件来更改Debian源
使用了‘阿里云源‘ at https://developer.aliyun.com/article/765348

查看:debian服务器已完成安装Gnome,如何开启

# 使开机启动进入图形界面
systemctl set-default graphical.target

reboot后,依旧无法引导进入图形界面(GUI模式)

startx

    (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    (EE) Server terminated with error (1). Closing log file.

安装VNC

root@Debian11:/etc/default# sudo apt install tigervnc-standalone-server 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libfile-readbackwards-perl tigervnc-common
The following NEW packages will be installed:
  libfile-readbackwards-perl tigervnc-common tigervnc-standalone-server
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1127 kB of archives.
After this operation, 3148 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian bullseye/main amd64 libfile-readbackwards-perl all 1.05-2 [12.2 kB]
Get:2 http://ftp.debian.org/debian bullseye/main amd64 tigervnc-common amd64 1.11.0+dfsg-2+deb11u1 [108 kB]
Get:3 http://ftp.debian.org/debian bullseye/main amd64 tigervnc-standalone-server amd64 1.11.0+dfsg-2+deb11u1 [1006 kB]

双双放弃,不用GUI,直接安装:包
https://github.com/conwnet/wpa-dictionary#linux-篇recommended--推荐

sudo apt install aircrack-ng



sudo mkdir /mnt/nas

sudo apt-get install cifs-utils


sudo mount -t cifs //192.168.6.203/KingchuxingSSD512G /mnt/nas -o username=carl,password=******

思路切换:用BT来管理Debian,不需要GUI了
内网面板地址: https://192.168.6.116:36430/8fef4036
username: ******
password: ******

sudo mount -t cifs -o rw,vers=3.0 //192.168.6.203/KingchuxingSSD512G /mnt/nas -o username=carl,password==******

works

debian 跑aircrack-ng
Aircrack-ng无线破解总结
Linux 云服务器aircrack-ng后台跑包并用邮件发送结果

aircrack-ng ./handshake/...cap -w ./pass/1d.txt

手机号字典生成器:可以根据用户需求定制化生成中国各大运营商和指定区域的手机号字典。
https://github.com/asaotomo/makephonedict

疑惑:aircrack-ng跑出来或者没有跑出来,区别在哪里

1. ewsa跑包
2. hashcat
    hashcat破解握手包密码
    //用aircrack-ng把cap转换成hccap类型数据包
    aircrack-ng <input.cap> -J <out.hccap>
    //用hashcat破解WPA/PSK密码( -m 2500为破解的模式为WPA/PSK方式)
    hashcat -m 2500 testap.hccap pass.txt
3. aircrack-ng [cap包] -w [字典路径]

开启SSH并新增Debian用户

BT面板中 > 安全 > SSH管理 > SSH开关
https://192.168.6.116:36430/firewall

debian新增一个管理用户
$ sudo adduser {username}
$ sudo passwd {username} #已被adduser默认包含了

将用户添加成为 sudo 用户
$ sudo usermod -aG sudo {username}

删除用户
sudo deluser --remove-home {username}

标签:username,初体验,debian,sudo,ng,设置,Debian,aircrack
From: https://www.cnblogs.com/backuper/p/17784502.html

相关文章

  • Debian国内源
    修改源 vim/etc/apt/sources.list 以下为debian12.0版本的源,需根据自己版本调整。 阿里云源debhttps://mirrors.aliyun.com/debian/bookwormmainnon-freenon-free-firmwarecontribdeb-srchttps://mirrors.aliyun.com/debian/bookwormmainnon-freenon-......
  • 关于debian安全
    目录debian安全信息安装前和安装过程中准备好前不要连入互联网设置GRUB密码Debian总指南:https://www.debian.org/doc/manuals/securing-debian-manual/index.zh-cn.htmldebian安全信息保持您Debian系统的安全性想收到最新的Debian安全警报的话,请订阅debian-security-an......
  • debian
    debian设置镜像源在/etc/apt/sources.list下将原来的内容删去,然后改为如下内容(清华镜像源)debhttps://mirrors.tuna.tsinghua.edu.cn/debian/bookwormmaincontribnon-freenon-free-firmwaredeb-srchttps://mirrors.tuna.tsinghua.edu.cn/debian/bookwormmaincont......
  • 文件上传请求头设置
    文件上传请求头设置涉及到文件上传时接口需要配置请求头:headers:{‘Content-Type’:‘multipart/form-data’}例如://导入excel数据exportfunctionimportStorage(data){returnrequest({url:'/agcloud/zhps/storage/importFile',method:'p......
  • 每次插入iPhone后“照片”程序会自动打开,如何设置取消自动播放?
    每次插入iPhone后“照片”程序会自动打开,如何设置取消自动播放?引言每次当插入iPhone数据线后,“照片”程序会被自动打开,这对一部分场景是有用的,减少了那么几次的点击操作,但很多时候,用户并不一定插入手机就是为了打开“照片”应用,还要耐心等待“照片”应用加载iPhone中的照片或视......
  • 前端接口请求HTTP设置自定义header属性字段大小写问题
    问题:接口请求头传token值的字段为tokenValue,需要用到token的接口一直不能成功请求。后端排查发现没有接收到token,前端虽然传了token值,但是发现浏览器把tokenValue变成了Tokenvalue,导致后端没正确接收到token值。原因是:HTTPRFC里规定,大小写不敏感。HTTP/1.x大小写不敏感,但现实是......
  • Debian12配置静态IP
    目录方法1方法2方法1rambo@test3:~$sudovim/etc/network/interfaces#追加如下内容........autoens33ifaceens33inetstaticaddress172.16.186.133netmask255.255.255.0gateway172.16.186.2dns-nameservers172.16.186.2rambo@test3:~$sudo......
  • 无涯教程-Clojure - 环境设置
    使用Clojure作为编程语言有多种方法。我们将研究两种使用Clojure编程的方法。Leiningen     - 使用Leiningen创建,构建和自动化Clojure项目的重要工具。EclipsePlugin - 使用CounterClockwise的插件,可用于Eclipse在EclipseIDE中进行Clojure开发。Leininge......
  • 深度学习设置随机数种子
    seed=2023torch.manual_seed(seed)#torch的CPU随机性,为CPU设置随机种子torch.cuda.manual_seed(seed)#torch的GPU随机性,为当前GPU设置随机种子torch.cuda.manual_seed_all(seed)#torch的GPU随机性,为所有GPU设置随机种子......
  • 【Shell篇】关于如何在.cshrc中自动设置terminal中prompt提示符以及title?
    废话不多说,直接上代码:setprompt="%{\033]0;%n@%m:%/\007%}%n@%m:%/>"aliascd'cd\!*;setprompt="%{\033]0;%n@%m:%/\007%}%n@%m:%/>"'第一行代表当本.cshrc执行时会将prompt以及title设置成用户自定义的格式;第二行代表用户每次执行cd命令切换路径时,prompt以及title......