Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.
Articles & Videos
The term 'shell' refers to a general class of text-based command interpreters most often associated with the UNIX and Linux operating systems. Popular shells include Bourne, Debian Almquist (dash), Korn (ksh), Bourne Again (bash) and the C shell family (csh). Some view the DOS 'cmd' prompt as a minimal shell of sorts. It is also possible to install Cygwin on Windows and emulate a full Unix environment with complete shell capabilities. Terminal emulators, such as xterm, GNOME Terminal and OS X Terminal, can be used to access shell.
I am trying unix .sh scripts on my windows laptop
from below link
What I want to do in a bash script, I provide the pseudo code
currentDate=script execution date
for all days in previous month (relative to currentDate)
I have a command that runs fine on Linux but not Windows
curl --silent -X POST -H "host: mytaglist.com" -H "Content-Type: application/json; charset=utf-8" -H "Authorization: bearer XXXXX-0fa9-4258-…
I have a problem parse DNS log. (On Linux)
Can you help me parse DNS log with tcpdump with the format?
Thank you very much.
Background: I have archived a ton of data to an external hard drive (lets call this drive EXT-A) to free up space on the internal drives of a Windows Server 2012 R2 server. EXT-A will remain permane…
Wanting to do a company-wide audit of all Servers and any Services that might be using a Ad user account. I've seen scripts that will do it per server, but is there a way to do it based on maybe a re…
Help required for user modification script on list of users
The script has condition that if user manager is available in AD, set the same along with other properties, if not it should update the o…
I'm writing an automated Script in Bash, and I've got into a bit of a block...
I have a file called /scripts/resources/nodes,t
The file currently hold only three lines:
I'm trying to achieve the following.
I have a folder with the following path: /home/service
in this folder I'll have many files all with the same format
I've been using a SFTP Centos 7.2 server using SSH service and I have to apply a script to remove files from several specific directories and sub-directories older than 30 days. In addition,…
I have RHEL 7.2 and not able to run my scirpt wile reboot actually when i am creating a soft link of my script then it wont work but if i am creating a file in init.d it works. please help with the co…
Hi all ,
Is there any way if our new kernel patch failed then I can roll back to previous via script on 100 servers as in this case we need to make sure that last good kernel need to be active no mat…
I want my raspberry pi to send me an email notification (on gmail) whenever an user logs in or logs out..
I tried running my script @reboot from crontab -e. The script runs well w…
Hello, so I've written a script in Centos cron to create daily backups of certain folders, using tar.
My problem is, I can't seem to have tar write errors to a log file.
This is the relevant com…
I have a custome logmein MSI file i want to execute remotely on a machine, is there a simple way to do this via powershell?
Hi - I am trying to send an email to mobile,so that it can be received as SMS and i used the below code snippet and it is not working
am i missing something
Hi - I have the below file format and i want to update a value in the line that start with C3
C1, 2,2,0,9292016_101425, 0, 9292016_101428, 0, 9292016_101428
C2, 1,2,0,9292016_101425, 0, 9292016_10…
I made aliases to edit and retrieve branch descriptions:(CODE)
Those are nifty, but I also want to check the description for all branches at once. So I have this script:(CODE)
That works as I want,…
Within the Local Security Policies on Windows, there's a category called Audit Policies. I'm trying to write a script that is capable of changing all the audit policies to success and failure, however…
I want to edit few files from Ubuntu and CentOS. The files to edit are -
/etc/network/interfaces and /etc/resolv.conf. Since i have about 50+ clients where i have to do this, i w…
How to check files recursively and get the latest file from the highest numbered directory.
1. We will have numbered directories 11110, 11114, etc.
2. Each above directory…
I need excel "countifs" functionality in bash, I hope that's possible.
Data is comma separated, with a column that has start time and a column that has stop time.
I need a column (#…
I have to replace the content of certain columns in a *.csv file by a defined string using a unix shell script on AIX.
e.g. CSV file before processing
I was looking a a sed command online (which seems to work fine) and didn't understand why the recommended solution included a [^>]. I don't think it's needed, so I was hoping someone could explain wh…
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming s…
Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or dat…