Search:

Type: Posts; User: termvrl; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.10 seconds.

  1. [ubuntu] Re: Enable Logging for attempted connection on a closed port

    Hi all,

    Thanks for the reply.
    i not use knockd because what im trying to do here is basically, to write a program looking for an attempt on closed port based on syslog generated.
    If the...
  2. Replies
    6
    Views
    2,121

    [SOLVED] Re: Script stop process.

    Hi All,

    Thanks for the reply. Its work.



    #!/bin/bash
    PID2=$(ps ax | grep [s]ec | awk '{print $1}')
    kill -USR1 $PID2
  3. Replies
    6
    Views
    2,121

    [SOLVED] Re: Script stop process.

    Hi all,
    i have try. but still same the error.



    root@ubuntu:/home/term# ps ax | grep [s]ec
    1669 pts/0 S+ 0:01 perl sec -conf=tim.conf -input=-
    root@ubuntu:/home/term#...
  4. Replies
    6
    Views
    2,121

    [SOLVED] Script stop process.

    Hi all,
    I try to write a bash script to translate this command.



    $ ps -ax | grep sec
    379 p0 S+ 0:00.18 perl sec.pl -conf=C5.1.01.conf -input=- -debug=4 $
    kill -USR1 379
  5. Replies
    1
    Views
    360

    [SOLVED] Change output format to MB / GB ?

    Hi all,

    I found this code to sum byte of access.log file in apache.



    cat access.log | perl -e 'my $sum=0; while(<>) { my ($traffic) = m/\[.+\] ".+" \d+ (\d+)/; $sum += $traffic}; print...
  6. Replies
    0
    Views
    305

    [SOLVED] Appliance GUI technology.

    Hi all,

    i just want to know, what is the technology behind the GUI of network/security devices.
    The GUI can provide the searching and display info from database, change the configuration on the...
  7. Replies
    11
    Views
    4,246

    [SOLVED] Re: multiple words pattern matching in regex

    Hi,
    i have a problem to match a floating type number.
    Let say, i want to match 20.0 in 20.0%us,
    My current code,


    cpu=$(top -bn1 | grep -oP '\d\d.\d(?=%us)')


    But it will prompt error...
  8. Replies
    11
    Views
    4,246

    [SOLVED] Re: multiple words pattern matching in regex

    Hi Lars,
    I managed to solve it by using only this part on "pattern",


    pattern=^.*\[msg "([^"]+)".*\[severity "([^"]+).*$


    and followed by "action",
  9. Replies
    11
    Views
    4,246

    [SOLVED] Re: multiple words pattern matching in regex

    Hi,

    it seem that it not recognized the \u\F in the "Severity - \u\F$2/".
    So this program use what type of regex? is it same as your link, perl based regex?
  10. [ubuntu] Re: Enable Logging for attempted connection on a closed port

    Hi,
    The tutorial was written on 2004.Is it outdated or irrelevant anymore?
    It will try your suggestion on the iptables first. I will give a feedback on it.
  11. Replies
    11
    Views
    4,246

    [SOLVED] Re: multiple words pattern matching in regex

    Hi all,

    Thanks for the reply.

    Here is the sample conf file(some called it rule file). In this file, it try to do a port knocking program. I will start the sshd if two condition fulfill, first...
  12. [ubuntu] Re: Enable Logging for attempted connection on a closed port

    Hi All,

    Thanks for your reply.

    First of all, what im trying to do is for a syslog analysis. i have a centralized syslog server that received logs from security devices, such as firewall, ids,...
  13. [ubuntu] Enable Logging for attempted connection on a closed port

    Hi all,

    I would to know how we can set/enable a syslog logging for an attempted connection on a closed port.
    I want to test for a port knocking. for e.g ; If received a attempted connection on...
  14. Replies
    11
    Views
    4,246

    [SOLVED] Re: multiple words pattern matching in regex

    Hi,

    I'm using a perl program call sec - simple event correlator.
    It has a .conf file for pattern matching using regex. I dont know what kind of regex it use.
    so, any way how i can find what kind...
  15. Replies
    11
    Views
    4,246

    [SOLVED] multiple words pattern matching in regex

    Hi all,
    im new to regex.
    what im trying to do is to match a few keywords and take it as a variable.

    For example:
    i have a sample log:



    192.168.0.13|<131>Nov 22 06:15:36 ubuntu...
  16. Replies
    3
    Views
    786

    [SOLVED] Re: How to load CPU 100%?

    Hi thanks

    i installed pi, and the cpu load hike very fast. =D
  17. Replies
    3
    Views
    786

    [SOLVED] How to load CPU 100%?

    Hi all,

    is there any tools that can boost cpu usage to 100% easily?
    currently i use simple script doing a never ending while loop process.
    or maybe a web server stress tools that can DOS the...
  18. Replies
    14
    Views
    1,910

    [SOLVED] Re: Regex pattern matching

    Hi,

    Thanks for your reply.
    This script is work for me, but need to install 'bc' first.


    #!/bin/bash
    cpu=$(top -bn1 | grep -oP '\d\d.\d(?=%us)')
    #echo "Test $cpu "
    if (( $(bc <<< "$cpu >...
  19. Replies
    14
    Views
    1,910

    [SOLVED] Re: Regex pattern matching

    Hi all,
    i try to put in on a bash script.
    But i encountered an error.
    Here my script:


    #!/bin/bash
    cpu=$(top -bn1 | grep -oP '\d.\d(?=%us)')
    #echo "Test $cpu "
    if[$cpu > 0.0];then
  20. Replies
    14
    Views
    1,910

    [SOLVED] Re: Regex pattern matching

    Hi steeldriver,

    Thanks for your explanation.
    I dont know that regex has different style. Thanks again.
  21. Replies
    14
    Views
    1,910

    [SOLVED] Re: Regex pattern matching

    Hi,

    Thanks for the response.
    It works.

    I will find more into 'awk' , 'sed' . its usefull.
  22. Replies
    14
    Views
    1,910

    [SOLVED] Regex pattern matching

    Hi All,

    I tried to use regex to do a pattern matching for CPU % usage. i only need the value, 0.0.

    The command i use:


    top -bn1 | grep "Cpu(s)" | grep ".\.." | grep ".\..%us"

    The result:
  23. Replies
    2
    Views
    417

    [SOLVED] Script to monitor service performance?

    Hi All,

    I want to ask, how we can monitor services performance, for e.g, apache cpu & nic usage, using script.
    I want to use this script with syslog server, if the apache cpu & nic usage is high,...
  24. Replies
    4
    Views
    7,964

    [SOLVED] Re: Mod_security configuration

    Thanks for response...
    i am exploring sed.
    after googling around, i found that modsec also have console panel called waf-fle.
  25. Replies
    4
    Views
    7,964

    [SOLVED] Re: Mod_security configuration

    Hi Thanks for your response.

    I managed to send modsecurity alert to SIEM server using rsyslog on my web server.
    I was confused between to type of log provided by modsecurity,...
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4