Pular para o conteúdo principal

Postagem em destaque

BlackTDN :: Autenticação 2FA para Usuário Root no WSL

--- # naldodj-wsl-2FA ## Autenticação 2FA para Usuário Root no WSL ### Introdução O Windows Subsystem for Linux (WSL) é uma ferramenta poderosa que permite aos desenvolvedores executar um ambiente Linux diretamente no Windows. No entanto, a segurança é uma preocupação importante, especialmente quando se trata de acessar o usuário root. Neste post, vamos mostrar como configurar a autenticação de dois fatores (2FA) para o usuário root ao acessar o WSL, garantindo uma camada adicional de segurança. ### Objetivo Vamos configurar um script de login que valida a senha do root e usa autenticação 2FA baseada em Time-based One-Time Password (TOTP), usando ferramentas comuns como `openssl`, `oathtool`, e `perl`. ### Passo 1: Instalar as Ferramentas Necessárias Primeiro, precisamos garantir que temos todas as ferramentas necessárias instaladas. Isso inclui `openssl`, `oathtool`, e `perl`. ```bash sudo apt-get update sudo apt-get install openssl oathtool perl ``` Para os scripts em Lua.

BlackTDN :: Social :: Rifa Festival da Arte Capoeira Projeto Eu Sou Ninja

Angariar fundos para cobrir os custos logísticos do "Festival da Arte Capoeira" e apoiar o projeto Eu Sou Ninja em sua missão de promover a integração social e cultural na comunidade de Jacaraípe. Com a criação da rifa, buscamos envolver a comunidade de forma ativa no financiamento do evento, permitindo que todos contribuam para o sucesso do festival e para a continuidade das atividades do projeto.






Prêmio: Copia da minha biblioteca pessoal de AdvPL/TLpp






..etc



Participe da Rifa

Eu já contribui. Só falta você!






```cmd

 Pasta de C:\GitHub\naldodj-tlpp

13/04/2024  19:17              .
19/03/2024  13:49              ..
05/01/2024  12:22             2.742 .gitattributes
14/11/2023  16:02                83 .gitignore
02/12/2023  20:08              .vscode
05/01/2024  12:05              bin
13/04/2024  19:18             4.121 ChangeLog.txt
27/12/2023  02:05              include
14/11/2023  16:02            27.030 LICENSE.txt
14/11/2023  16:02                 0 makepatch.lst
14/11/2023  16:02                16 readme.md
15/03/2024  12:05              tlpp
               6 arquivo(s)         33.992 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git

13/04/2024  19:17              ..
13/04/2024  19:18                29 COMMIT_EDITMSG
10/01/2024  14:47               451 config
14/11/2023  16:02                73 description
13/04/2024  19:21               101 FETCH_HEAD
12/03/2024  13:39              fsmonitor--daemon
28/01/2024  20:36                23 HEAD
10/12/2023  19:34              hooks
13/04/2024  19:18            12.217 index
14/11/2023  16:02              info
14/11/2023  16:02              logs
13/04/2024  19:21              objects
13/04/2024  19:21                41 ORIG_HEAD
14/11/2023  16:02               114 packed-refs
14/11/2023  16:02              refs
               8 arquivo(s)         13.049 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs

14/11/2023  16:02              .
13/04/2024  19:18              heads
10/01/2024  15:23              remotes
14/11/2023  16:02              tags
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs\heads

13/04/2024  19:18              .
14/11/2023  16:02              ..
13/04/2024  19:18                41 master
               1 arquivo(s)             41 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs\remotes

10/01/2024  15:23              .
14/11/2023  16:02              ..
13/04/2024  19:18              origin
10/01/2024  17:01              upstream
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs\remotes\origin

13/04/2024  19:18              .
10/01/2024  15:23              ..
10/01/2024  17:01                32 HEAD
13/04/2024  19:18                41 master
               2 arquivo(s)             73 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs\remotes\upstream

10/01/2024  17:01              .
10/01/2024  15:23              ..
10/01/2024  15:23                41 add-license-1
10/01/2024  17:01                34 HEAD
10/01/2024  15:23                41 master
               3 arquivo(s)            116 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.git\refs\tags

14/11/2023  16:02              .
14/11/2023  16:02              ..
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\.vscode

02/12/2023  20:08              .
13/04/2024  19:17              ..
02/12/2023  20:08               347 launch.json
               1 arquivo(s)            347 bytes

 Pasta de C:\GitHub\naldodj-tlpp\bin

05/01/2024  12:05              .
13/04/2024  19:17              ..
14/11/2023  16:02            36.919 3rdpatch.hb
14/11/2023  16:02              cfglog
14/11/2023  16:02            26.494 check.hb
03/01/2024  22:06            27.732 commit.hb
14/11/2023  16:02               244 findnoasciicharacters.ps1
14/11/2023  16:02            28.576 harbour.ucf
14/11/2023  16:02              patches
14/11/2023  16:02               157 tolower.ps1
               6 arquivo(s)        120.122 bytes

 Pasta de C:\GitHub\naldodj-tlpp\bin\cfglog

14/11/2023  16:02              .
05/01/2024  12:05              ..
14/11/2023  16:02            49.657 cfglogdb.7z
14/11/2023  16:02            51.054 cfgloglocal.7z
               2 arquivo(s)        100.711 bytes

 Pasta de C:\GitHub\naldodj-tlpp\bin\patches

14/11/2023  16:02              .
05/01/2024  12:05              ..
14/11/2023  16:02               123 makepatch.bat
14/11/2023  16:02             1.232 makepatch.lst
14/11/2023  16:02               213 makepatch.ps1
14/11/2023  16:02               135 tlpp.ps1
14/11/2023  16:02             2.847 tlpp.txt
               5 arquivo(s)          4.550 bytes

 Pasta de C:\GitHub\naldodj-tlpp\include

27/12/2023  02:05              .
13/04/2024  19:17              ..
14/11/2023  16:02               710 ctrl_vk.ch
27/12/2023  02:02             8.199 execin.ch
27/12/2023  01:33             7.748 execin.th
14/11/2023  16:02             2.068 headergd.ch
14/11/2023  16:02             3.999 jsonarray.ch
14/11/2023  16:02             1.826 jsonhash.ch
14/11/2023  16:02            14.970 paramtypex.ch
14/11/2023  16:02               242 set_default.ch
14/11/2023  16:02               283 stackparameters.th
14/11/2023  16:02               114 tfini.ch
14/11/2023  16:02             3.674 thash.ch
14/11/2023  16:02             7.767 tryexception.ch
              12 arquivo(s)         51.600 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp

15/03/2024  12:05              .
13/04/2024  19:17              ..
13/04/2024  18:42              .vscode
16/01/2024  12:02              models
13/04/2024  18:46              tools
14/11/2023  16:02              wsrest
11/03/2024  19:39              __remove.me
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\.vscode

13/04/2024  18:42              .
15/03/2024  12:05              ..
19/01/2024  11:45              .advpl
13/04/2024  18:42              .cache
15/03/2024  12:06               533 launch.json
15/03/2024  11:36               190 settings.json
               2 arquivo(s)            723 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\.vscode\.advpl

19/01/2024  11:45              .
13/04/2024  18:42              ..
13/04/2024  18:42           423.523 _binary_class.prw
13/04/2024  18:42           440.523 _binary_functions.prw
               2 arquivo(s)        864.046 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\.vscode\.cache

13/04/2024  18:42              .
13/04/2024  18:42              ..
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\models

16/01/2024  12:02              .
15/03/2024  12:05              ..
15/03/2024  12:06             8.366 sqltools.advpl.model.prw
               1 arquivo(s)          8.366 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\tools

13/04/2024  18:46              .
15/03/2024  12:05              ..
26/03/2024  05:33              .vscode
15/03/2024  11:57            36.781 arrayutils.tlpp
15/03/2024  11:57             5.289 cachedata.tlpp
21/03/2024  13:58            34.792 ctools.tlpp
21/03/2024  14:06            13.217 customparambox.tlpp
15/03/2024  11:58            16.529 dbeval.tlpp
15/03/2024  11:58            31.384 dbtools.tlpp
15/03/2024  11:57               909 default.tlpp
04/04/2024  17:13            16.619 dirtools.tlpp
15/03/2024  11:58             4.654 dnaauth.tlpp
15/03/2024  11:58             9.057 evalblock.tlpp
15/03/2024  11:59            15.829 execin.tlpp
12/03/2024  14:29            21.801 filetools.tlpp
15/03/2024  11:59            27.831 ftdb.tlpp
15/03/2024  11:59             4.174 gdtools.tlpp
15/03/2024  11:59            14.357 hb_encrypt.tlpp
15/03/2024  11:59               670 isnil.tlpp
15/03/2024  12:00            78.551 jsonarray.tlpp
15/03/2024  12:00             2.897 jsonhash.tlpp
15/03/2024  12:00             8.339 killapp.tlpp
15/03/2024  12:00            10.260 mainexec.tlpp
11/03/2024  19:47             3.968 messaging.tlpp
15/03/2024  12:00             6.301 msobjects.tlpp
04/04/2024  16:57            28.009 msprocess.tlpp
13/04/2024  18:45             5.420 mutex.tlpp
15/03/2024  12:00             1.064 nextalias.tlpp
15/03/2024  12:01             8.539 ntools.tlpp
15/03/2024  12:01             1.962 picture.tlpp
15/03/2024  12:01             5.674 pstools.tlpp
22/03/2024  14:44            14.275 readstackparameters.tlpp
15/03/2024  12:01             7.340 rpctools.tlpp
15/03/2024  12:01             6.766 sqlstriphtml.tlpp
09/04/2024  13:39            25.384 sqltools.tlpp
15/03/2024  12:01             3.796 stacktools.tlpp
15/03/2024  12:01             3.369 striphtml.tlpp
04/04/2024  16:57            37.380 sxb.conpad1.tlpp
15/03/2024  12:01            16.781 tfini.tlpp
15/03/2024  12:02           119.590 thash.tlpp
15/03/2024  12:02            16.689 timecalc.tlpp
28/03/2024  09:00            29.503 tlogreport.tlpp
15/03/2024  12:02            11.849 tmptableutils.tlpp
15/03/2024  12:02            12.707 tprogress.tlpp
15/03/2024  12:02            32.032 tvarinfo.tlpp
04/04/2024  17:13            33.554 txteditmemo.tlpp
04/04/2024  17:13            14.501 txttools.tlpp
15/03/2024  12:02            25.273 udbtools.tlpp
15/03/2024  12:02            25.042 uft.tlpp
15/03/2024  12:02               745 ukillallusers.tlpp
15/03/2024  12:02            17.598 utoxml.tlpp
11/03/2024  19:50             1.297 utrec.tlpp
              49 arquivo(s)        870.348 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\tools\.vscode

26/03/2024  05:33              .
13/04/2024  18:46              ..
25/03/2024  16:17              .advpl
26/03/2024  05:33              .cache
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\tools\.vscode\.advpl

25/03/2024  16:17              .
26/03/2024  05:33              ..
26/03/2024  05:33           423.523 _binary_class.prw
26/03/2024  05:33           440.523 _binary_functions.prw
               2 arquivo(s)        864.046 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\tools\.vscode\.cache

26/03/2024  05:33              .
26/03/2024  05:33              ..
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest

14/11/2023  16:02              .
15/03/2024  12:05              ..
14/11/2023  16:02              afx
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx

14/11/2023  16:02              .
14/11/2023  16:02              ..
16/01/2024  12:02              actions
14/11/2023  16:02              afxfiles
16/01/2024  12:02              dbg
16/01/2024  12:02              fields
16/01/2024  12:02              models
21/03/2024  14:05              openai
16/01/2024  12:02              rotinas
16/01/2024  12:02              utils
21/03/2024  14:03              wsrest
16/01/2024  12:02              wsservices
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\actions

16/01/2024  12:02              .
14/11/2023  16:02              ..
14/11/2023  16:02             5.055 afxgenact.tlpp
               1 arquivo(s)          5.055 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\afxfiles

14/11/2023  16:02              .
14/11/2023  16:02              ..
14/11/2023  16:02              afxcfgdir
14/11/2023  16:02              authentication
               0 arquivo(s)              0 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\afxfiles\afxcfgdir

14/11/2023  16:02              .
14/11/2023  16:02              ..
14/11/2023  16:02             4.246 afxfwwsmodel.ini
               1 arquivo(s)          4.246 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\afxfiles\authentication

14/11/2023  16:02              .
14/11/2023  16:02              ..
14/11/2023  16:02               120 authentication.aut
               1 arquivo(s)            120 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\dbg

16/01/2024  12:02              .
14/11/2023  16:02              ..
14/11/2023  16:02             4.793 afxrestmodelobject.tlpp
14/11/2023  16:02            11.297 ufwrestmodelobject.tlpp
14/11/2023  16:02            53.614 _afxfwwebservicesmodel.prx
               3 arquivo(s)         69.704 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\fields

16/01/2024  12:02              .
14/11/2023  16:02              ..
14/11/2023  16:02             5.601 afxvldfields.tlpp
14/11/2023  16:02             4.220 zz_fk.tlpp
14/11/2023  16:02             4.325 zz_index.tlpp
14/11/2023  16:02             4.310 zz_ref.tlpp
               4 arquivo(s)         18.456 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\models

16/01/2024  12:02              .
14/11/2023  16:02              ..
14/11/2023  16:02            11.607 afxlayout.prw
11/03/2024  19:48            37.751 mvczw_tabeladelog.prw
               2 arquivo(s)         49.358 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\openai

21/03/2024  14:05              .
14/11/2023  16:02              ..
21/03/2024  14:06            12.759 openai.tlpp
               1 arquivo(s)         12.759 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\rotinas

16/01/2024  12:02              .
14/11/2023  16:02              ..
11/03/2024  20:02             5.157 afxauthcd.tlpp
21/03/2024  13:59             1.459 afxcdlay.tlpp
11/03/2024  19:53            10.691 afxcfgini.tlpp
11/03/2024  19:53            22.314 afxcrgini.tlpp
21/03/2024  13:59               819 afxgrpverbas.tlpp
11/03/2024  19:53             4.254 afxjobintt.tlpp
11/03/2024  19:53             5.367 afxqryintegracao.tlpp
11/03/2024  19:54             4.732 zw_tabeladelog.tlpp
               8 arquivo(s)         54.793 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\utils

16/01/2024  12:02              .
14/11/2023  16:02              ..
11/03/2024  19:50             9.758 afxmvctool.tlpp
11/03/2024  19:51             4.813 afxparam.tlpp
11/03/2024  19:51             9.083 afxtools.tlpp
11/03/2024  19:50            58.117 afxutils.tlpp
11/03/2024  19:51             3.719 totvsitafx.tlpp
               5 arquivo(s)         85.490 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\wsrest

21/03/2024  14:03              .
14/11/2023  16:02              ..
27/12/2023  02:02            13.354 afxgetdata.prw
16/01/2024  12:02              samples
11/03/2024  19:52            22.867 userjsoncrudexecin.tlpp
11/03/2024  19:52           140.233 userrestcrudadvpl.prw
11/03/2024  19:52            13.233 userrestcrudttlpp.tlpp
21/03/2024  14:06             4.099 userwscrudexecin.prw
               5 arquivo(s)        193.786 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\wsrest\samples

16/01/2024  12:02              .
21/03/2024  14:03              ..
11/03/2024  20:01             1.022 getelpasedtime.tlpp
11/03/2024  20:02             1.238 getsb1data.tlpp
               2 arquivo(s)          2.260 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\wsrest\afx\wsservices

16/01/2024  12:02              .
14/11/2023  16:02              ..
14/11/2023  16:02            13.078 afxfwwebservicesmodel.prx
11/03/2024  20:02             1.252 wsafxauth.tlpp
11/03/2024  19:52             6.761 wsafxgeneric.tlpp
11/03/2024  19:52               666 wsmocksrv.tlpp
               4 arquivo(s)         21.757 bytes

 Pasta de C:\GitHub\naldodj-tlpp\tlpp\__remove.me

11/03/2024  19:39              .
15/03/2024  12:05              ..
27/12/2023  10:38               105 sqltools.tlpp.model.prw
14/11/2023  16:02             2.297 utoxml.prg
               2 arquivo(s)          2.402 bytes

     Total de Arquivos na Lista:
             429 arquivo(s)      5.342.275 bytes
             651 pasta(s)   28.711.247.872 bytes dispon¡veis

```

Comentários

Postagens mais visitadas