• Bash notes

    Use dash, which does­n’t drop privileges. Argu­ments ls Order by the last recent mod­i­fied file: ls -t Better history Add this to .bashrc HISTSIZE=10000 HISTTIMEFORMAT='%F %T ' Han­dling from files with starting - cp -- -file.txt file.txt STDOUT, STDIN and STDERR (redirection) Out­put STDERR (2) also on STDOUT (1) cmd 2>&1 man Seach­ing for a key­word in…

  • metasploit

    The usu­al stuff: workspace -a host42 // To create a new workspaceworkspace host42 // To open an existing workspacedb_nmap ...hostsservices...search smb type:auxiliary...vulns // Shows all found vulnerabilitiescreds // Shows all found credentials General usage Payloads Working with sessions Using the database A data­base can be used to store infor­ma­tions, pay­loads, etc. To cre­ate a ini­tial db,…