This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| python3 -V | |
| python2 -V | |
| ------------------------------------------------------------------------------------------ | |
| #Command-line one-liners | |
| # -c run Python script sent in as cmd string | |
| python -c "print(3.0/2)" | |
| python -c "import math;print(math.sin(1))" | |
| python -c "for i in range(1,5):print(i)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| $ cat app.rb | |
| puts "Type your name :" | |
| name = gets.chomp | |
| puts "Hello world " + name | |
| $ ruby app.rb | |
| Type your name : | |
| ------------------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------------- | |
| ------------------------------------------------------------------------------------------------- | |
| #hello_world.go | |
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("Hello, World!") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------------------------------------------------------- | |
| NF is a predefined variable whose value is the number of fields in the current record | |
| parse fields by field separator FS (default single space) | |
| ---------------------------------------------------------------------------------------------------- | |
| #string match,tab delimited file, starting with any of letter A,C,T,G ending with forward slash | |
| $ cat test.txt | |
| id1 342 C/T | |
| id2 7453 T/A/-/G/C | |
| id3 531 T/C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================================================================ | |
| https://www.sans.org/tools/ | |
| ============================================================================ | |
| FTK Imager, ANJP, EZ Tools, SIFT, Regripper, Windows Event Log Explorer, Volatility, Plaso, DensityScout, SigCheck | |
| ============================================================================ | |
| Live System Analysis for computers with Windows 10 operating system with tools such as Sysinternals, Powershell, WM | |
| Collecting triage data and parsing methods with KAPE | |
| Physical Imaging with FTK Imager | |
| Logical Imaging with FTK Imager | |
| Memory Imaging with FTK Imager, DumpIT, WinPmem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -------------------------------------------------------------------------------------------------------------------------- | |
| #To create a user on an Ubuntu server and set up passwordless SSH access using a private key from a Windows 10 desktop, follow these steps: | |
| Ubuntu 22.04.3 LTS | |
| Windows 11 Desktop | |
| On Windows 11 Desktop: | |
| Generate SSH Key Pair (if not already generated): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------ | |
| Step-by-Step Guide: Creating a GitHub Repository and Uploading Files from VS Code | |
| This guide will walk you through the process of creating a new GitHub repository and then using Visual Studio Code (VS Code) on Windows 10 to upload your workflow and PowerShell script. | |
| Part 1: Create a New GitHub Repository | |
| First, you need to create a place for your files on the GitHub website. | |
| Go to GitHub: Open a web browser and go to https://github.com/. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ========================================================================================================== | |
| # powershell (black) | |
| #Install chocolatey windows 11 | |
| Set-ExecutionPolicy Bypass -Scope Process -Force | |
| [System.Net.ServicePointManager]::SecurityProtocol = ` | |
| [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================================================================ | |
| >where python (cmd) | |
| ============================================================================ | |
| #add interpreter | |
| File-Settings-Project:PycharmProjects-Python Interpreter | |
| ============================================================================ | |
| py --help | |
| modules | |
| python -help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------------------------------------------------------ | |
| >display snmp-agent ? | |
| community Display the SNMPv1 or SNMPv2c community name | |
| extend SNMP extend configuration | |
| group Display the information of groups based on USM | |
| heartbeat Heartbeat | |
| inform Display config parameters of the inform alarm | |
| local-engineid Display the engine ID of local SNMP entity | |
| mib-view Display the SNMP MIB view | |
| notification-log Notification log |