Postagens

Mostrando postagens de 2020

Cisco router password recovery

1) Press Break on the terminal keyboard a couple of times after you see the message program load complete, entry point: 0x80008000, size: 0x6fdb4c in order to put the router into ROMMON. 2) Type confreg 0x2142 at the rommon 1> prompt in order to boot from Flash. This step bypasses the startup configuration where the passwords are stored. 3)  Type reset at the rommon 2> prompt. The router reboots, but ignores the saved configuration. 4)  Type no after each setup question, or press Ctrl-C in order to skip the initial setup procedure. 5)  Type enable at the Router> prompt. You are in enable mode and should see the Router# prompt. 6)  Type   configure memory   or copy startup-config running-config in order to copy the nonvolatile RAM (NVRAM) into memory. 7)  Type show running-config. The passwords (enable password, enable secret, vty, and console passwords) are in either an encrypted or encrypted format. You can reuse ir change. 8)  Type configure terminal. The hostname (conf

Dell Vostro break key alternative

Try CTRL + FN + S That's It.

Convert physical disk (GPT) to VHDx

How to do it: Use Disk2vhd to create a VHDX (or VHD, but I recommend VHDX) from your physical disk - it doesn't really matter which drives you check/uncheck as long as your Windows drive is checked. Create a Gen2 VM in Hyper-V and attach the new VHDX and your choice of Windows installation media (DVD or VHD). Boot the VM (it shouldn't matter what's listed first under the Firmware tab - it'll likely boot from your installation media anyway since your VHDX doesn't work yet). Hit Shift+F10 to bring up the Command Prompt (or click through troubleshooting buttons to the Command Prompt). Type "diskpart" and hit Enter. Type "list vol" and hit Enter - note the drive letter of your Windows volume (most likely the largest option), as well as which volume says Raw next to it. Type "sel vol #" where "#" is the number of the volume that says Raw next to it (this is the reason your VHDX doesn't "just work" when Disk2vhd has co

How to Enable SSH on Cisco Switch, Router

1) Generate the RSA Keys      myswitch(config)# crypto key generate rsa             The name for the keys will be: myswitch.mydomain.com          How many bits in the modulus [512]: 1024      % Generating 1024 bit RSA keys, keys will be non-exportable...[OK] 2) Setup the Line VTY configurations     # line vty 0 4      (config-line)# transport input ssh     (config-line)# login local     (config-line)# password 7     (config-line)# exit 3) Setup the Console configuration      # line console 0      (config-line)# logging synchronous      (config-line)# login local 4) Verify SSH access      myswitch# sh ip ssh           SSH Enabled - version 1.99           Authentication timeout: 120 secs; Authentication retries: 3 That's it

How to force reinstall software assigned via GPO when it was manually uninstalled

How to force reinstall software assigned via GPO when it was manually uninstalled On the computer, go to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt. Identify the software by looking at the “Deployment Name” value. Delete the key of the software you need to reinstall. Reboot and check if the software is reinstall.

How to change dhcp/static IP on Ubuntu 18.04

For DHCP edit file /etc/netplan/50-cloud-init.yaml and change to: network:     ethernets:         eth0:             addresses: []             dhcp4: true             optional: true     version: 2 For a static IP edit file /etc/netplan/50-cloud-init.yaml and change to: network:     ethernets:         eth0:             addresses:             - 192.168.1.2/24             gateway4: 192.168.1.1             nameservers:                 addresses:                 - 1.1.1.1                 search:                 - domain.local             optional: true     version: 2 $ sudo netplan apply $ sudo netplan try That's it

How to configure nested virtualization Hyper-V VM

$VMName = 'VM' Set-VMProcessor -VMName $VMName -ExposeVirtualizationExtensions $true

How to change hostname on Ubuntu 18.04

$ sudo hostnamectl set-hostname <newname> Change "preserve_hostname:" false to true on /etc/cloud/cloud.cfg $ sudo vi /etc/cloud/cloud.cfg Add newname to /etc/hosts $ sudo vi /etc/hosts 127.0.0.1 <newname> $ sudo reboot

How to resizing the Linux Root Partition

In this example i use the Ubuntu Linux on Hyper-V VM Gen2 and default LVM partitioning. Check your partitioning with lsblk. Now check the mount point with df -h. Resize disk on Hyper-V and  if you cannot view the total size you need reboot or rescan disk. # echo 1 > /sys/block/sda/device/rescan # parted GNU Parted 3.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)? Fix/Ignore/Cancel? Fix Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 20971520 blocks) or continue with the current setting? Fix/Ignore? Fix Model: Msft Virtual Disk (scsi) Disk /dev/sda: 31.5GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number 

Link column to edit

1) Edit the AllItems.aspx page for the specific list. 2) Search for the <ViewFields> tag 3) List item LinkToItem="TRUE" to whichever column you want the link: <ViewFields><br/>     <FieldRef Name="Attachments"/>     <FieldRef Name="LinkTitle"/>     <FieldRef Name="linkThisColumn" LinkToItem="TRUE"/>     <FieldRef Name="Other_column"/> </ViewFields><br/>

Zoom Metting - Vulnerabilidades

Zoom Metting - Vulnerabilidades Nos últimos dias devido a quarentena imposta por várias cidades, cresceu exponencialmente o uso das ferramentas de videoconferência. Uma dessas ferramentas é o Zoom da empresa de mesmo nome. Essa ferramenta esta sendo bastante usada mas também avaliada por pesquisadores e hacker em busca de falhas e violação de direitos. Já há relatos de várias vulnerabilidades e também compartilhamento de informações. Segue alguns relatos: Compartilhamento de informações com o Facebook. Já informado que foi corrigido; Criptografia não fim-a-fim, ou seja, a criptografia é entre o usuário e o Zoom; Dentre outras.

Install Docuware 6.12

Install / Migrate Docuware 6.12 # Install Windows Server 2016 SQL Server 2016 Express Installing role Webserver (IIS) will install following Role Services by Default Basic Authetication (Security) Default document Static Content DocuWare Server Setup installs following Role Services automatically ASP.NET (4.5) HTTP Redirect Windows Authentication Install following Role Service to obtain better performance WebSocket Protocol (available with IIS 8) #  DocuWare Server Setup installs following components automatically .NET Framework v4.6.1 Windows Installer 4.5 Java 8 Update 131 (Fulltext Server) Visual C++ redistributable packages 2005 (x86) 2008 (x86) 2010 (x86/x64) 2013 (x86/x64) 2012 (x86/x64) 2015 (x86/x64) Microsoft Message Queuing Windows Features .NET Framework 4.5 Features WCF Activation/Services HTTP-Activation https://support.docuware.com/en-us/knowledgebase/article/KBA-36041