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
    
  
  
    
  | <# | |
| .Synopsis | |
| Decrypt an MTPuTTY configuration file | |
| .Description | |
| Read an MTPuTTY configuration file, decrypt the passwords and dump the result | |
| .Parameter ConfigFile | |
| Path to the MTPuTTY configuration file | 
  
    
      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
    
  
  
    
  | @(set `" <#=")& echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2021 | |
| :: can use custom args: cmdline with %* [opens "C:\" if empty]; folder/program/oneliners like: cmd /c "whoami & timeout 7" | |
| call :RunAsTI %* | |
| :: add Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer [optional] | |
| set "0=%~f0"& powershell -nop -c iex(([io.file]::ReadAllText($env:0)-split':SendTo\:.*')[1])& goto :SendTo: | |
| $SendTo=[Environment]::GetFolderPath('ApplicationData')+'\Microsoft\Windows\SendTo\RunAsTI.bat'; $enc=[Text.Encoding]::UTF8 | |
| if ($env:0 -and !(test-path -lit $SendTo)) {[IO.File]::WriteAllLines($SendTo, [io.file]::ReadAllLines($env:0,$enc))} | |
| :SendTo: | 
  
    
      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
    
  
  
    
  | #!/usr/bin/python3 | |
| import maxminddb | |
| import sys | |
| IPreader = maxminddb.open_database('/home/tom/GeoLite2-City.mmdb') | |
| ASNreader = maxminddb.open_database('/home/tom/GeoLite2-ASN.mmdb') | |
| n = len(sys.argv) | |
| for i in range (1, n): | |
| ip = sys.argv[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
    
  
  
    
  | #!/usr/bin/python3 | |
| import requests | |
| import sys | |
| n = len(sys.argv) | |
| for i in range (1, n): | |
| ipipapi = "https://btapi.ipip.net/host/info?ip=" + sys.argv[i] + "&host=&lang=cn" | 
  
    
      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
    
  
  
    
  | # Run the last command as root | |
| sudo !! | |
| # Serve current directory tree at http://$HOSTNAME:8000/ | |
| python -m SimpleHTTPServer | |
| # Save a file you edited in vim without the needed permissions | |
| :w !sudo tee % | |
| # change to the previous working directory | |
| cd - | |
| # Runs previous command but replacing | |
| ^foo^bar | 
  
    
      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
    
  
  
    
  | <?php | |
| /* | |
| If this script is trace.php, the url line would look something like this: | |
| GET /trace.php?IP=216.92.150.222 | |
| * First PHP version is 0.4 | |
| * 0.5 added support for command-line parameters for Linux version to change packet type and port. | |
| YOU CAN MAKE YOUR OWN CHANGES. If you need different parameters, or have a different unix version, feel | 
  
    
      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
    
  
  
    
  | # THIS DOCKERFILE TRIES TO COMPILE CURL FOR ANDROID x86 ARCH | |
| # Description - http://vitiy.info/dockerfile-example-to-compile-libcurl-for-android-inside-docker-container/ | |
| FROM ubuntu | |
| MAINTAINER Victor Laskin "victor.laskin@gmail.com" | |
| # Install compilation tools | |
| RUN apt-get update && apt-get install -y \ | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| # usage: aws-assume-role-from-env [<command> [<args> …]] | |
| # | |
| # Authenticates with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, assumes the | |
| # role in AWS_ROLE, and modifies the environment to set AWS_ACCESS_KEY_ID, | |
| # AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN. If <command> is specified, it | |
| # is exec-ed with the given <args>. Otherwise, /usr/bin/env is executed. | |
| # | |
| # Set AWS_ROLE_SESSION_NAME to use a value other than the default | |
| # (aws-assume-role-from-env@$time). | 
  
    
      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
    
  
  
    
  | #include <errno.h> | |
| #include <netdb.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| struct in_addr ip; | |
| struct hostent *hp; |