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 :: a small memory manager test code (Harbour vs AppServer : round VIII fight)

Comparando os resultados do Oitavo teste teremos:

Harbour

27/01/2012, 09:11:43, Harbour 3.1.0dev (Rev. 17207), Windows XP 5.1.2600 Service Pack 3

Len( cWSpace ) :      8192

testing single large memory blocks allocation and freeing...

CPU time:    1.6406250000 sec.
real time:      1.6880000000 sec.

Protheus/TotvsAppServer

27/01/2012, 10:35:24, TOTVS APPServer P10 7.00.101202A-20110330 R1, Windows

Len( cWSpace ) :      8192

testing single large memory blocks allocation and freeing...

CPU time:    4.2500000000 sec.
real time:      4.2500000000 sec.

 

testing many large memory blocks allocation and freeing... testing large memory block reallocation with intermediate allocations...
Harbour Protheus/TotvsAppServer

CPU time:  170.0156250000 sec.
real time:   196.5940000000 sec.

CPU time:  191.5000000000 sec.
real time:    191.5000000000 sec.

Harbour Protheus/TotvsAppServer

CPU time:    6.1562500000 sec.
real time:      7.0000000000 sec.

-

PLEASE, CONTACT TOTVS TECHNOLOGY DEPARTMENT.

Teste 8

27/01/2012, 09:15:12, Harbour 3.1.0dev (Rev. 17207), Windows XP 5.1.2600 Service Pack 3

Protheus/TotvsAppServer -

CPU time (total):  181.7656250000 sec.
real time (total):    209.3130000000 sec.

-

[]s
иαldσ dj

Comentários

  1. Huahauahauhauaha!!!! Departamento de Tecnologia foi achado???? Sumiram na neblina..rs

    ResponderExcluir

Postar um comentário

Postagens mais visitadas