General :: Software In Ubuntu That Can Count Scans?
Jan 1, 2011Is there a software in linux ubuntu that can count scans???
View 1 RepliesIs there a software in linux ubuntu that can count scans???
View 1 RepliesI have the following perl/DBI script:
Quote:
#!/usr/bin/perl
use DBI;
my ($db, $user, $pw) = ('dbname', '****', '***********');
my $dbh = DBI->connect("DBI:mysql:$db",$user,$pw) or die "Cannot connect to $db: $DBI::errstr
[code].....
The error message is
[Wed Feb 24 13:03:27 2010] myscript.cgi: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at myscript.cgi. [Wed Feb 24 13:03:27 2010] myscript.cgi: DBI::db=HASH(0x8a30c60)->errstr
i just installed ubuntu 10.04 on my computer, and tried to airodump, but noticed that its stuck on 11th channel, when i specified only channel 6 during scan, it gave me hosts from channel 6 and 11, but then i ran aireplay-ng and it runs on 11th channel as well, even when i put my card into monitor mode with a specific channel option. btw my chipset is AR9285 with ath9k driver. everything worked in backtrack. i also tried to reinstall aircrack which did not work.
View 1 Replies View RelatedHow can I display the no. of lines, words and characters for each file in current directory and in sub directory.
wc . * shows errornous result as there are some executable files in that directory.
I list all the instances of a running process my doing:ps -ef | grep myprogramThis lists all them.how can I simply output a count of how many are running?
View 2 Replies View RelatedI'm so used to Windows having to run multiple malware scans with multiple tools. Running registry cleaners and running CCleaner to remove all of the old temp files, cookies etc.. Derfagging. Ok with Ubuntu no more malware scans. No more registry scans. It appears that there isn't a defrag tool? And what about the other things that tend to clog up the works, Temp files , cookies etc. Is that what the disc janitor is all about?
View 6 Replies View RelatedI have a really deep directory tree on my Linux box. I would like to count all of the files in that path, including all of the subdirectories.
For instance, given this directory tree:
/home/blue
/home/red
/home/dir/green
/home/dir/yellow
/home/otherDir/
If I pass in /home, I would like for it to return 4 files. Or, bonus points if it returns 4 files, 2 directories. Basically, I want the equivalent of right-clicking a folder on Windows and selecting properties and seeing how many files/folders are contained in that folder.
How can I most easily do this? I have a solution involving a Python script I wrote, but why isn't this as easy as running ls | wc or similar?
We are working on our subscription renewal and now since Red Hat has changed their subscription model we need to give them the number of physical CPU sockets on each system.I have tried looking thru /proc/cpuinfo as well as tried to parse data out from dmidecode but both of those solutions count each individual core as a CPU.Is there a clean and easy way to determine the number of sockets on each system? We also use RHN Satellite to manage our systems but I believe that is pulling the same data from dmidecode
View 2 Replies View RelatedI would like to count all the jpgs in my home folder I need a command like this:
~$ Sudo count -R /*/*.jpg
Anybody know and command to count any characters in file? I would like to know the total number of character " (quote) in file. My idea is to check if in a script the total number of this character is pair.
View 4 Replies View Relatedi try to make a script in bash that u choose a number for example 501 and another number like 1 and find how much the 1 number repeat in all numbers from 1 to 501 for example 11 -->1 repeat 2 times.in 1 to 501 the number 1 repeat 200 times.
View 4 Replies View RelatedI'm trying to count words in a text file that has a comma as separator. I know that I must user wc -w, but wc uses space as a separator
View 2 Replies View Relatedin a tab-delimited file, such as:
Code:
111aIab
222bIIbc
[code]...
I'm trying to make and make install a driver for my wireless, every time, though, I use the make command, it'll start at 0 and cound almost up to 200,000 and then the computer freezes. I've tried different drivers, same result. I've tried ndiswrapper but that didn't work either.
View 8 Replies View RelatedI am a newbie in Linux. Here is my question....
Create the file ~/license_counts, which tables the number of occurrences of packages which are licensed under a given license, for the top 5 most commonly used licenses, sorted in numerically descending order. If performed correctly, your file should be formatted similarly to the following. (Do not be concerned if the actual counts or license names are different. Also, you might notice logically similar licenses, such as LGPL/GPL and GPL/LGPL. Do not make any attempt to combine them into a single entry.)
The resulted format:
I tried some method but cannot get it to work.
I own Fedora Core 12 and an HP scanner. I want to make digital copies of all the pictures I took a few years ago. I have a lot so I tried scanning five at a time thinking I could cut and paste into smaller images like with MS Paint on Windows. HPLIP 3.9.12 wouldn't let me modify the scans so I tried GIMP 2.6.10. GIMP 2.6.10 is a nightmare! When I opened my scan of five pictures I had trouble opening a new image. Then I had to specify the size of the new image. The when I cut and pasted I couldn't rotate. Then when I figured out how to rotate my image was too small.
Then I tried scanning just one picture but HPLIP left a lot of blank space. I tried cropping out the blank space with GIMP but the image size was the same with the blank space. I don't want to post photos to Flickr that are mostly empty space.I wish I could show you examples but the forum won't let me post them.Any ideas or suggestions for a program for Fedora Core 12 that's got the functions and features of MS Paint?
can some one explain why opensuse 11.2 try to scan the default gw via snmp? And why it generates wrong packages with other mac-addresses? we have 3 scan tries with the same IP (from the fresh install) but with 3 different mac addresses. Can some one point me to the code which does this strange things?
View 2 Replies View RelatedLet's say you have a host with some kind of locally installed root kit detector/scanner.
If someone managed to get root access to that box. Wouldn't the first thing to do, before installing a root kit, be to remove any kind root kit detector?
It was recommended that I post the results of a service scan performed against a remote machine. However, before I get flamed for lack of proper etiquette, I asked for advice prior to posting. So, here goes. I have a been getting scanned repeatedly by the same group of addresses for well over 2 months. I decided to take a closer look once the scans stepped up a notch. By "stepped up a notch" I mean more specific. All the originating HOST are using either port 12200 or port 6000. All with one exception, appear to be located in China. The scans are blatant. Over and over again. I noticed some timing between scans that seemed to match up with a European location as well.
The first question would be if I could get in trouble for the remote host actions. I mean, I have noticed pings directed past the router to the internal network now in my linux logs. Could the attacker/scanner be using me as a bounce for other stuff? The scans, as stated before, never stop.
I ran a scan against one of the host out of curiosity. You can check it out at http://pastebin.com/5qcKSgC0. It appeared to be a school in china. Should I report it? IF so, how would aI report it to some guy in china, I don't speak or write Chinese.
I wrote a test app that scans for plugins in a directory, calls their getWidget() method (implemented in my interface), and adds that widget to a layout.
The problem is that when I added a QTimer to my plugin class, it didn't work! Why?
And will it be easier to write the thing in Python and not use QPlugin? I just want to define a QWidget and have it added to the app.
Is this the correct way to show the line count of a specific file?
cat file | grep * -c
I want to count the lines of all files in this directory and all its subdirectories, but exclude directories "public", "modules", and "templates".
View 2 Replies View RelatedTrying to count the number of oracle instances on HPUX 11.23 - using ksh. I have multiple instances running and I would like to have a count for how many processes for eachinstance.Example, run the 'ps -efu oracle' command and for each instance increment a counter. So I am looking forINT1=# INT2=# INT3=# ... INTn=#I keep thinking a 'do-while' or some type of 'while' loop but I am missing something, somewhere
View 2 Replies View RelatedI am trying to create users accounts reading from a file. I can get it to show if the user already exists but I want it to instead of not creating the user account to create e.g. Scott1 etc.The code i have so far is :
#!/bin/bash
while read line
do
[code]...
I am using grub of version 2, and current resolution vga=795 (probably). X runs at 1680x1050. So what I would like to know is, how can I count the right VGA parameter number for grub, to use another resolution?
View 11 Replies View RelatedI have a pool of approximately 1,000 Linux servers and I would like to get a total count of reboots that occurred on those servers each month. I would like to collect this reboot count at the end of each month. Can anyone tell me what the best way to get this count.
View 1 Replies View RelatedI am a noob and I am trying to display a count of the number of subdirectories in a directory. I have been able to use find -type d to list directories and subdirs but I want a numerical value of dirs and subdirs. I know ls -l gives a count but when I try ls -l -d all it shows is "." I also have tried a combination with the -R option but nothing seems to be working for me.Please forgive my ignorance but I am working on a script for class and this is the first step.
View 3 Replies View RelatedI just noticed after installing a new server with samba that a portscan will show the samba used ports. This server has two interfaces, a world address eth0 and an intranet eth1. The samba ports show in scanning either interface, even after I changed samba to listen only to the intranet (192.168.x) address.
I am concerned especially about the 139 and 445 ports, which could attract a lot of garbage traffic.This is Debian 5.05 default samba installation.Otherwise similarly installed Ubuntu box with two interfaces does not show samba at all, even though smbd is running and working just fine.
Disappointed with avast for linux, it only scans when you manually start a scan. I want antivirus software alerts immediately when a suspicious email arrives into Thunderbird inbox.
View 1 Replies View RelatedUbuntu 9.10 54 bit
XSane 0.996
Document Viewer 2.28.1
Brother MFC 240c multi function scanner, printer, fax
So I am cleaning up some old paper records from 2009. I scanned about 25 pages of old medical receipts, prescription receipts etc. as a multi page project. The destination was a pdf file. The desired file is created and I can open it in the default Document Viewer. When I try to print to my Brother HL5170DN laser printer (just one page as a test) I get a message in the print queue window:
Processing Printer warning
com.apple.print.recoverable
and the job never prints. I can print pdf files from other sources such a printing a web page to a file/pdf, pdf files downloaded or created on other computers etc.
If I print the pdf created by XSane and viewed in Document Viewer to the MFC 240c ink jet printer, the pages are about 3/4 size, not the full size pages I scanned.
I am forced to do my scanning and pdf writing on an XP virtual machine running on the Ubuntu box under VMWare