Search Results

Search: Posts Made By: drd0spt
6,357
Posted By drd0spt
[SOLVED] Python Binary File Read and Parse
Hi to everyone :), i have a challenge right now in python that for now needs a bit of help in one part of the c0de.
The task is create a new file with the name of the file defined by the ASCII...
6,702
Posted By drd0spt
i thought on that but i experimented seems he...
i thought on that but i experimented seems he goes up when he runs out of the loop in normal fashion after the cpu reaches levels below the 95
6,702
Posted By drd0spt
while read PID CPU REST < <(ps -eo...
while read PID CPU REST < <(ps -eo pid,pcpu,args|grep [b]ackup)
do
if [ "$CPU" -ge 95 ]
then
renice -1 $PID
fi
sleep 2
done
6,702
Posted By drd0spt
well bipinajith i have your script on my...
well bipinajith i have your script on my crontab.hourly :) small question why you have the the read parameter on the UNIXPROC ... variable and why you dont refer to the unixproc to find the values on...
6,702
Posted By drd0spt
hmmm why, not a while loop to keep track if the...
hmmm why, not a while loop to keep track if the process is on or not.
6,702
Posted By drd0spt
that is exactly what i'm doing vbe :) a .sh to...
that is exactly what i'm doing vbe :) a .sh to make the process go down in priority a bit not too much and relase some load on the task ( lower the cpu load ) and prevent the alert on my email from...
6,702
Posted By drd0spt
well the tool is integrated on the ids tools is...
well the tool is integrated on the ids tools is Backup script that in a basic resume logs in zips and send it by ssh to the backup server from the main server ( the one that receives the traffic and...
6,702
Posted By drd0spt
IDS - Large stream of data coming in , at in a...
IDS - Large stream of data coming in , at in a certain period of time in the night the task backup starts and i receive a spike cpu load alert that makes me always check for possible DDoS on our...
6,702
Posted By drd0spt
yeh i understand but that is on server that i...
yeh i understand but that is on server that i need to keep track of logs, the backup task ( c0ded by the product team ) is single core so doesnt try to balance itself in the server resources ... that...
6,702
Posted By drd0spt
ps aux + grep + nice + while
Hi again, well does anyone knows how can i grep a process that right know the only part of the process name that i know is "backup" then renice it if the cpu consumption is more then 90% ...

for...
1,117
Posted By drd0spt
well i must be doing something wrong ... lets see...
well i must be doing something wrong ... lets see :

today_date =$(date +"%Y"_"%m"_"%d") # this returns ex: 2012_11_21

for i in $(ls)
do
if [ $(echo $i | awk -F"From_" ' { print...
1,117
Posted By drd0spt
Quick awk tip :)
how do i "awk" the date after the from only to compare it on a if statement later .

filename example:

server1-ips-ultranoob-ok_From_2012_21_12-23:40:23_To_2012_21_12-23:49:45.zip


what i...
Forum: Cybersecurity 11-21-2012
2,567
Posted By drd0spt
ok the situation is i have a IDS ( SourceFire )...
ok the situation is i have a IDS ( SourceFire ) is snort based and i have a completly normal snort rule, that looks for a escape character on normal HTTP request and he assumes that the type of...
Forum: Cybersecurity 11-21-2012
2,567
Posted By drd0spt
Snort HTTPS
Is it possible to rule out in alert all HTTPS traffic or rule out all the HTTPS trafic from the alerts on snort ?
3,444
Posted By drd0spt
well i have the rubic solution on the server is...
well i have the rubic solution on the server is working fine i will make a teste version of the pamu c0de, inside that if i have a for i$ in the backup folder that removes the older files, and is...
3,444
Posted By drd0spt
hmmm i see i was doing this while i was asking to...
hmmm i see i was doing this while i was asking to have a ideia how to do it my way was

df -H -m | awk '{print $4}' > exemplo.txt


if [ ´ cat exemplo.txt | grep -c 99 ´ = 1 ]
then
rm...
3,444
Posted By drd0spt
tnx for ur fast response do you know if is...
tnx for ur fast response do you know if is possible to get only the value from the Use percentage % Like if i got 99% of the disk used i will get a output of 99 only as a output from the command or...
3,444
Posted By drd0spt
Grab the return value of df -H-m
Hi to everyone :)

Quick question how do i grab the return value on the 5 position here :


sgs@sibs:~$ df -H -m
Sist.fichs 1M-blocos Used Available Use% Mounted on
/dev/sda1 ...
2,213
Posted By drd0spt
sorry my bad, i have the parenthesis on my...
sorry my bad, i have the parenthesis on my orignal code, it was my mistake but yes even with the () , it does not return the values when i put the second digit on the seconds in $startdate but if i...
2,213
Posted By drd0spt
find -ctime
startdate="2012_07_04-16:14:4"
path1="/home/drdos/sample"

days=0

find $path1 -name "*$startdate*" > teste.txt

while [ ${cat teste.txt | grep -c $startdate } -lt 0]
do

find $path1...
1,518
Posted By drd0spt
Find Files with a input in directories
So i have directories that store logs, 1 directorie for each day, with the name like this :

2012_07_01/
2012_07_02/

and for each directorie we have the logs, inside them lives the logs for...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 04:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy