Mindblown: a blog about philosophy.
-
Enumerate or Count Active Connections on a Given Port
Enumerate Active Connections on port 1433: netstat -aon | find “:1433 ” Count Active Connections on port 1433: netstat -aon | find /c “:1433 ” To Enumerate and Count Active Connections on port 1433 and 443 ECHO This is the log for %date%: >> C:\logs\log.txt ECHO Current number of connections to 1433: >> C:\logs\log.txt…
-
Locating crontab scheduled tasks in *nix
If you need a list of all users crontab tasks, run this as root: for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done will loop over each user name listing out their crontab. The crontabs are owned by the respective users so you won’t be able to see another user’s…
-
Find Symbolic Links in *nix
Find all symbolic links on a linux OS: find / -type l -exec ls -l {} \; Or if you want to output it to a file: find / -type l -exec ls -l {} \; > /home/admin/symbolic_link_list.txt
-
Granting MySQL Permissions and Deleting them
Granting permissions in MySQL, localhost and external hosts must be separately run, the % sign means any external host and will not account for local connections: GRANT ALL PRIVILEGES ON *.* TO root@”localhost” IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON *.* TO root@”%” IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; But say you wanted to then remove…
-
Perception is Relative
Actions speak louder than words, and I find some actions speak poorly. I find the LGBT world has a duality to it. I belong to the transgender community, which is where I run into this the most. For example, I pulled an article from here: http://www.cambio.com/2015/09/17/what-happened-when-i-revealed-to-men-on-tinder-that-im-a-transg/ The body is below, images are clickable, and although…
-
My Personal Shangri-La
I have once heard rumor that somewhere there is still a Chi Chi’s. I imagine it hidden inside a mountain where Shangri-La is. So on some random corner is a long lost land, is the best Mexican Restaurant chain ever, known only to the locals of Shangri-La. Oh wait, I found them: https://www.cityplug.be/en/Brussels/A42AV16Z_Restaurant_Chi-Chi-s-Anspach.html https://en.wikipedia.org/wiki/Chi-Chi%27s
-
A Troubleshooters Guide to Process Monitor (ProcMon)
Process Monitor, by SysInternals under Microsoft, shows real-time file system, Registry and process/thread activity. To do this it registers itself with the Event Tracing for Windows to receive activity reports from both the file system and the windows registry. It can be found here: Windows Sysinternals Process Monitor. Display Overview Some basics of what to…
-
DOS commands for IP
Below, you’ll find a list of the most common IP commands for Windows and DOS. These include ipconfig, trace route, netstat, arp, route, hostname, control netconnections, and other popular DOS and Windows IP commands. ipconfig /all ipconfig /displaydns ipconfig /flushdns ipconfig /release ipconfig /renew ipconfig /registerdns ipconfig /setclassid control netconnections netsetup.cpl ping whatismyip.com tracert netstat…
-
MSSQL Backup all Non System Databases Scripted
Microsoft SQL Server backups, MSSQL Backup, process Note: You may need to go to Tools > Options > Query Results > SQL Server > Results to Text in the Studio Manager and change the “Maximum number of characters displayed in each column to 1024” (default is 256). Also make sure you are outputting the results…
Got any book recommendations?