General :: Grep Not Recognizing All The Meta-characters When Used With -e Option.

Oct 13, 2010

I was trying to use the grep command with -e option to test some regular expressions with it but to surprise not all the meta characters were being recognized by the grep engine, how ever egrep works perfectly fine.

For example : The following egrp command works fine:

View 3 Replies


ADVERTISEMENT

Slackware :: Dhclient Does Not Strip Or Escape Shell Meta-characters

Apr 6, 2011

dhclient does not strip or escape shell meta-characters

Summary: dhclient doesn't strip or escape certain shell meta-characters in dhcpd responses, allowing a rogue server or party with with escalated privileges on the server to cause remote code execution on the client.

CVE:

ISC dhclient did not strip or escape certain shell meta-characters in responses from the dhcp server (like hostname) before passing the responses on to dhclient-script. Depending on the script and OS, this can result in execution of exploit code on the client.

CVSS Score:

For more information on CVSS scores, visit [url]

Workarounds:

On SUSE systems, it is possible to disable hostname update by setting DHCLIENT_SET_HOSTNAME="no" in /etc/sysconfig/network/dhcp.

Other systems may add following line to dhclient-script at the beginning of the set_hostname() function:

In environments where filters/acls can be put into place to limit clients to accessing only legitimate dhcp servers, this will protect clients from rogue dhcp servers deliberately trying to exploit this bug.

However, this will not protect from compromised servers.

Active exploits:

Solution:

Upgrade to 3.1-ESV-R1, 4.1-ESV-R2 or 4.2.1-P1. [url]

No patch is available for 4.0.x as it is EOL. Anyone running 4.1.x should upgrade to 4.1-ESV-R2.

Acknowledgments:

Revisions:

View 1 Replies View Related

General :: GREP - Search Special Characters

Feb 10, 2010

I need to search for the following pattern with GREP in a text file:

So I tried already:

But none of those works...I think probably because GREP doens't like the special character > in the middle of the serach pattern.

At the end I just need to now if GREP found the pattern in the file or not, so it should give me a 0 or a 1 back, once I check the value of the variable "?" after using the grep command.

View 4 Replies View Related

General :: Using Grep With -r Option

Feb 19, 2011

I have on my desktop around five java files. I also created a java file in directory Viti, located in desktop.

Since all java files contain string "class", I practice my usage of grep with the following:

And this works fine. However, when I type the following:

I expect to be shown the file that's located in my Viti directory, too, but it won't show it.

View 4 Replies View Related

General :: Bash - Using Find Or Grep To Locate Filenames With Accented Characters From A Different Encoding System (Windows)

Dec 6, 2010

I tried to tag late onto a question similar to mine on stackoverflow (Find Non-UTF8 Filenames on Linux File System) to elicit further replies, with no luck so far, so here goes again... I have the same problem as the OP in the link above and convmv is a great tool to fix one's own filesystem. My question is therefore academic, but I find it unsatisfactory (in fact I can't believe) that 'find' is not able to find non standard ascii characters.

Is there anyone out there that would know what combination of options to use to find filenames that contain non standard characters on what seems to be a unicode FS, in my case the characters seem to be 8bits extended ascii rather than unicode, the files come from a Windows machine (iso-8859-1) and I regularly need to fetch them. I'd love to see how find and/or grep can do the same as convmv.

[Code]....

View 2 Replies View Related

Ubuntu Installation :: Alt/Win Meta Key Option Not Working After Natty Upgrade

May 4, 2011

After upgrading to Natty, my Alt/Win meta key option is no longer working.

I'm using System Settings -> Keyboard -> Layouts -> Options -> Alt/Win key behavior and selecting "Meta is mapped to Win keys".

However the Win key still just pops up the files-and-folders window, and meta is not there.

This worked fine in 10.10. Need this with Emacs...

View 4 Replies View Related

General :: Grep A String Like "ab?c12345678" Where 3rd Character Is Unknown While Other Characters Are Known?

May 7, 2011

How to grep a string like "ab?c12345678" where 3rd character is unknown, while other characters are known.

View 2 Replies View Related

Programming :: Remove Characters From Grep Output?

Apr 14, 2010

How can I remove characters from grep output using sed? code...

View 9 Replies View Related

Debian Configuration :: Kernel Not Recognizing Boot Option ?

Aug 25, 2010

I'm running Squeeze and I've been running into the r8169 hang problem (see [url]for example). A temporary (until the driver foibles in the kernel are resolved) solution that seems to be working for many people is passing the boot option "pcie_aspm=off" to the kernel.

Apparently, either I don't understand grub2 at all or my kernel doesn't like me very much. I put the option in grub.cfg like so:

However, it appears that the kernel, for whatever reason, is either not being given this boot option or it's not interpreting it correctly. When I run lspci -vv I get this for my r8169 ethernet card:

The relevant section is LnkCtl: ASPM L0s L1 Enabled; indicating that ASPM is still on.

View 8 Replies View Related

Software :: Grep Recursive Search Directory Depth Option ?

Feb 28, 2011

I know grep can search recursively (ie through all subdirectories to the bottom of the directory tree), but is it possible to ask grep to only search say, 3 levels down? That means the current directory, any directories in the current directory, and within any directories within those?

View 1 Replies View Related

General :: Does Non-printing Characters Escape Characters Still Needed For PS1 Definition?

Aug 28, 2011

While modifying the definition of my PS1, I saw that "[" and "]" markers should be added to help bash to compute the right display lenght. Many exemples on the web do not use them or even mention them.I searched for a solution to add them automatically, like with sed, but I didn't find any example.Are they still needed and is there a recommandation not to use sed to define PS1?

View 1 Replies View Related

Ubuntu :: Delete All ASCII Characters In File - Leave Chinese Characters Only

Jul 8, 2011

What command could I use in terminal to delete all ASCII characters? That is, delete a-z, A-Z, 0-9, and all punctuation? I have a file containing Chinese characters, and I want to remove everything else and leave just the Chinese.

I can use grep to leave only the lines that have Chinese in them, but this still leaves a lot of non-Chinese stuff on those lines. Does anyone know how I could actually remove everything that isn't Chinese?

View 4 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

OpenSUSE :: UTF-8 Characters On Vi / Can't Handle Those Characters Properly

Jun 16, 2010

I have my OpenSuse 11.1 box set up with utf-8, however, every time I try to open a file with utf-8 characters with vi it can't handle those characters properly.

View 6 Replies View Related

General :: Xine Not Recognizing DVD Format?

Jan 15, 2011

I am trying to get my DVD to view on my Dell D610 laptop running Fedora 14 LXDE. Error messages:

Xine engine log console:
lirc: cannot initialise - disabling remote control
lirc: maybe lircd isn't running or you can't connect to the socket?

[code]....

View 1 Replies View Related

General :: Apache 2 Not Recognizing .shtml Files?

Nov 4, 2009

I have just changed my web pages mostly to .shtml to take advantage of ssi.Now, when I go to my website, it gives an "index of /" page instead of showing the .shtml files.I have read in many places that .shtml files have to be specifically set up to be recognized as index files, but I cannot for the life of me get it to work or even to understand where I'm supposed to put all of the configuration stuff.I need to know what to change to make the apache 2 parse .shtml files for ssi and also to make apache check for .shtml files as an index file.

View 14 Replies View Related

General :: Debian Installer Not Recognizing Partitions

Jul 6, 2010

I am currently running an Asus EEe PC 1000H with Windows 7 installed on it. I am trying to set up a dual boot with Debian. My problem is: I boot the netbook via an SD card with the netinstaller image. When it comes to create partitions, the installer tells me, that my HDD is completely empty, which is not true. I have 3 partitions, one with w7, one with stuff (fat32) and one empty, where debian should go. Because it doesn't recognize my partitions, it only wants to create a new partition on the supposedly empty HDD, which is not what I want. Why does it not recognize my HDD? It always worked with Ubuntu, LinuxMint etc.

View 1 Replies View Related

General :: CD Drive Not Recognizing Most Media On 10.4 Lucid Lynx?

Jan 22, 2011

I can insert a " burned " CD and it boots and plays right away , but if I insert a purchased music CD or other Purchased media it just scans and does nothing . I've gone to "places " and opened the CD drive and get the message " no media found "or Insert media .Also in the properties tab of the CD drive type is "unknown " and permissions can't be determined .

View 1 Replies View Related

General :: Compaq Presario Not Recognizing Linksy's Wifi Usb Hub

Jun 12, 2009

is there a program or something to enable my presario 2100 to read a linksy's program disc? the disk says it should run automatically, but the comp keeps sending an error message that its either a multi-part drive? or its a zipfile and it cannot recognize.

View 1 Replies View Related

General :: Bugzilla 4.0 Not Recognizing SetEnv Variable For Virtual Host?

May 26, 2011

I am attempting to stand up a new server Red Hat EL6 with Bugzilla-4.0 and everything is working expect Virtual Host. By defualt Bugzilla looks for SetEnv PROJECT (variable) in the /etc/httpd/conf/httpd.conf file. I followed the given instructions to place SetEnv PROJECT (variable) under <VirtualHost> however bugzilla doesn't recognize that it is there. When I put SetEnv PROJECT outside of <VirtualHost> then it becomes the default for ALL my different virtual host instead of using what is inside the <VirtualHost> section.

Here is the NameVirtualHost section of my httpd.conf file

NameVirtualHost *:443
SetEnv PROJECT UIDPMO
<VirtualHost 140.188.65.31:443>

[code]....

PS: Here is what Bugzilla 4.0.1 guide says to do: 2.4. Multiple Bugzilla databases with a single installation The previous instructions referred to a standard installation, with one unique Bugzilla database. However, you may want to host several distinct installations, without having several copies of the code. This is possible by using the PROJECT environment variable. When accessed, Bugzilla checks for the existence of this variable, and if present, uses its value to check for an alternative configuration file named localconfig.<PROJECT> in the same location as the default one (localconfig). It also checks for customized templates in a directory named <PROJECT> in the same location as the default one (template/<langcode>). By default this is template/en/default so PROJECT's templates would be located at template/en/PROJECT.

To set up an alternate installation, just export PROJECT=foo before running checksetup.pl for the first time. It will result in a file called localconfig.foo instead of localconfig. Edit this file as described above, with reference to a new database, and re-run checksetup.pl to populate it. That's all. Now you have to configure the web server to pass this environment variable when accessed via an alternate URL, such as virtual host for instance. The following is an example of how you could do it in Apache, other Webservers may differ.

<VirtualHost 212.85.153.228:80>
ServerName foo.bar.baz
SetEnv PROJECT foo
Alias /bugzilla /var/www/bugzilla
</VirtualHost>

Don't forget to also export this variable before accessing Bugzilla by other means, such as cron tasks for instance. For anyone that fell into the same trap as I did. The Bugzilla guide neglects to tell you where to set the SetEnv PROJECT variable. It turns out that you need to add this variable in the /etc/httpd/conf.d/ssl.conf file under each virtual host section. So for me I did the follwoing

<VirtualHost_default_443>
SetEnv PROJECT PDS

Save the file, restarted Apache and everything worked as expected. Although I did include the NameVirtualHost section in /etc/httpd/conf/httpd.conf I don't think it made a difference.

View 1 Replies View Related

General :: Not Recognizing 'new' Ubuntu8.1 Disk When Attempt To Add Program Packages In Gnome?

Nov 22, 2010

adding some program packages doesn't seem to be working out of add/remove, asking me to insert Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081030) which i believed to be the 8.1 desktop release i received with the laptop. doesn't recognize it. is this the wrong cd?

View 3 Replies View Related

Fedora :: 'Move Window' Key From ALT+LMB To META+LMB

Jan 21, 2010

I have 3d packages I need to use but can't because of this

I am using F12, previously this was in a menu 'System>Preferences>Look&Feel' or Windows, but now I can't find it, do I have to edit a .conf file or .profile file for this or what

View 5 Replies View Related

Fedora :: F12 - KDE Keyboard - Meta Keys

Jun 26, 2010

After one of latest update I have problem with meta keys (like shift, ctrl and alt) in KDE. When I press one of this keys, it sometimes stays active after release and deactivates only after I press it again. It's annoying especially while I'm writing some code (php or html) and meta keys randomly stays active after release.

xorg.conf:

Code:

View 2 Replies View Related

Ubuntu :: MP3 Meta Tags Reverting?

Feb 24, 2011

i would change the tag it applies then it reverts i have even edited them with easy tag it appears to keep but rhythmbox does not register the change and it revers if i change it there aside from re-encoding them is there a way to change the tag on them

View 4 Replies View Related

Ubuntu Multimedia :: Change Meta Tags ?

Jan 24, 2010

I have a folder that has lots of sample audio files, all in mp3 format. Does anyone know of a way to change artist - album info for all these files in one go. I am wanting to change the artist for all files to myself and album to something like day/date etc.

View 2 Replies View Related

Ubuntu :: Add Meta Data To A Video File?

Mar 25, 2010

i just encoded a mkv file and i noticed that once i remove the .mkv from the file name ubuntu no longer knows how to open the file. i have removed the .extension from my other video files and ubuntu plays it just find so im thinking there is no meta data for my newly encoded mkv file. how do i add meta data for my video file? i have mkvmerge installed but have no clue how to use it also i have avidemux installed can i use either of those programs?

View 2 Replies View Related

Ubuntu Multimedia :: WMA To MP3 Retaining Meta Data

May 23, 2010

I have about 50% of my music collection in wma format from my old Windoze days. I don't want to spend the time ( it is about 1800 songs) to re rip the tunes but I want uniform format. I tried using Sound Converter 1.4.4 but I lost all the meta-data.

View 4 Replies View Related

Debian :: Complete Removal Of Meta-packages Possible?

May 7, 2010

I'm wondering if complete removal of meta-packages, that being the package itself AND all of its dependencies, is possible in one command of aptitude and/or apt-get. For instance, if I have the whole kde installed, and wish to remove that whole load and replace it with the smaller kdebase, can I do this in two commands (IE, "aptitude remove kde", and then followed by "aptitude install kdebase"). The preceding commands wouldn't work, because just removing the initial meta-package would not remove its dependent packages. BUT, I'm wondering if there is a way to remove a meta-package AND its dependent packages all in one command (rather than having to go through individually removing each one).

View 1 Replies View Related

Software :: Podcast Grabber And Meta Tags ?

Mar 22, 2011

I have looked at several Podcast retrieving applications. However, none I have found so far do anything good with the Podcast information.

Almost every podcast contains tags that could be populated into metadata tags, it would seem, fairly easily. Having a podcast grabber that did so would certainly simplify using them on my iPod.

View 3 Replies View Related

Programming :: Control/Meta Keys - How Do They Work?

Mar 28, 2011

I would like in depth knowledge of how these keys work. If I were to want to use these keys for my own application how would I program them?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved