debsecan --suite $(lsb_release --codename --short) --only-fixed --format detail(--format packages permet même de récupérer la liste des paquets à mettre à jour via apt)
debsecan –format detail
apt update && apt install lynis
Regarder les tutos de prise en main ci-dessous : copier le compte rendu fourni dans votre rapport
Pour exporter directement en html ou autre:
https://github.com/d4t4king/lynis-report-converter
le rapport lydis est contenu dans :
su -
sudo lynis audit system
# (as root)
apt update # versions prior to Ubuntu 16.04 LTS should use 'apt-get'
apt -y install htmldoc libxml-writer-perl libarchive-zip-perl libjson-perl
apt install make
apt install git
pushd /tmp/
wget http://search.cpan.org/CPAN/authors/id/M/MF/MFRANKL/HTML-HTMLDoc-0.10.tar.gz
tar xvf HTML-HTMLDoc-0.10.tar.gz
pushd HTML-HTMLDoc-0.10
perl Makefile.PL
make && make install
popd
wget http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Excel-Writer-XLSX-0.95.tar.gz
tar xvf Excel-Writer-XLSX-0.95.tar.gz
pushd Excel-Writer-XLSX-0.95
perl Makefile.PL
make && make install
popd
popd
git clone https://github.com/d4t4king/lynis-report-converter.git
cd lynis-report-converter
./lynis-report-converter.pl -i lynis-report.dat -o report_lynis_html
##download the report on your local machine with scp##
To exec in local terminal
scp -P 22 <USER>@<VM_IP>:/home/thompson/report.html /Users/thomas/Desktop/
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing