Skip to content

Commit

Permalink
Create command_parser.sh
Browse files Browse the repository at this point in the history
Counts commands entered per session by attacker
  • Loading branch information
mausam-patel authored Aug 12, 2020
1 parent f18ef5c commit a61deaa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions command_parser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

countCommandsperSess=0

for f in *
do
countCommandsperSess=`cat $f | grep 'SSH_CONNECTION' | cut -d ':' -f '8' | wc -l`
echo "$countCommandsperSess"
done

exit 0

0 comments on commit a61deaa

Please sign in to comment.