Skip to content

Instantly share code, notes, and snippets.

View AnmolTomer's full-sized avatar
💻
Learning

Anmol Tomer AnmolTomer

💻
Learning
View GitHub Profile
@AnmolTomer
AnmolTomer / .gitignore
Last active August 20, 2024 05:28
bits/stdc++.h file for mac - Tested on Sonoma 14.6.1 -> 2024-08-14
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
import random
import sys
from optparse import OptionParser
import Util
from Connection import Connection
class SSHBruteForce():
def __init__(self):
@AnmolTomer
AnmolTomer / CentOS7.md
Last active February 9, 2021 21:57
CentOS 7 - 2009 Setup Oracle VirtualBox
@AnmolTomer
AnmolTomer / WINDOWS_10.md
Last active September 6, 2021 23:12
WINDOWS 10 PS SNIPPETS
  1. GET DETAILS OF APPLICATION WITH PID RUNNING ON A SPECIFIC PORT

Replace 5500 with the port that you want to get info on.

  • Get-Process -Id (Get-NetTCPConnection -LocalPort 5500).OwningProcess Reference
  1. KILL TASK WITH SPECIFIC PID - WINDOWS 10
  • taskkill /F /PID 7644
  1. SHORTEN THE SYSTEM PATH VARIABLE IF YOU REACH 2047 LIMIT
@AnmolTomer
AnmolTomer / New_VM_Machine.md
Last active February 3, 2021 13:29
VMWare New Machine Tweaks

1. Enable Clipboard Copy in VMWare Workstation

When you create a new VM, in my case I store my new VMs in Documents\Virtual Machines directory, so for e.g. if I create the VM named wot_lab then for that you have a file with extension wot_lab.vmx created as well. You can open <vm_name>.vmx file with notepad and to enable clipboard copy paste between host and guest you need to paste these two params:

isolation.tools.copy.disable = "FALSE"
isolation.tools.paste.disable = "FALSE"
@AnmolTomer
AnmolTomer / basic_ubuntu_commands.md
Created August 26, 2020 14:17
List Commands for day to day tasks

List of Linux Commands for day to day tasks

  • List all contents of directory in a human readable format with last modified time : ls -Slh &gt;&gt; list.txt
@AnmolTomer
AnmolTomer / wget.sh
Created July 9, 2020 20:35
Takes download links from a txt file, makes a folder same as directory name, puts all the downloads in the dir and upon completion put all the files inside zip and save the structure with file size inside a tree.txt. Does this for all txt present in path.
for file in ./* ; do
dir=$(basename $file .txt)
mkdir $dir
cd $dir
wget -i "../${file}"
tree -h -D -o "${dir}_tree.txt" .
zip -r "${dir}.zip" .
rm *.pdf
cd ..
dir=""
# Use as: wget -O - -q https://git.io/Jf15N | bash
# Make sure USB debugging is on and adb is installed
# else run sudo apt-get update && sudo apt-get install android-tools-adb android-tools-fastboot
adb forward tcp:9222 localabstract:chrome_devtools_remote
wget -O tabs.json http://localhost:9222/json/list
{"lastUpload":"2020-07-09T20:12:02.633Z","extensionVersion":"v3.4.3"}
  • Problem Description: "VMware Workstation and Device/Credential Guard are not compatible" error in VMware Workstation on Windows 10 host (2146361)

Solution

Just run cmd as Admin and type

bcdedit /set hypervisorlaunchtype off

and REBOOT