remote exploit in bash cve2014 6271

http://seclists.org/oss-sec/2014/q3/649 http://seclists.org/oss-sec/2014/q3/650 https://access.redhat.com/articles/1200223 https://rhn.redhat.com/errata/RHSA-2014-1293.html http://www.ubuntu.com/usn/usn-2362-1/ More detailed info: https://securityblog.redhat.com/2014/09/24/bash-×specially-crafted-environment-variables-code-injection-attack/ Stephane Chazelas discovered a vulnerability in bash, related to how environment variables are processed: trailing code in function definitions was executed,…

Continue Readingremote exploit in bash cve2014 6271

Clear cached memory on cpanel server

Flushing the Cached Memory
By default, Linux has a very efficient memory management process that should be freeing any cached memory on the server. However, the server may, at times, decide that the cached memory is needed but is being used which can lead to memory related issues.

You can use the following command to flush your cache memory
(more…)

Continue ReadingClear cached memory on cpanel server

100 SED Commands

sed (stream editor) is a Unix utility that parses and transforms text, using a simple, compact programming language.
From pement.org
————————————————————————-
USEFUL ONE-LINE SCRIPTS FOR sed (Unix stream editor)

FILE SPACING:

# double space a file
sed G

# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'

# triple space a file
sed 'G;G'

# undo double-spacing (assumes even-numbered lines are always blank)
sed 'n;d'

# insert a blank line above every line which matches “regex”
sed '/regex/{x;p;x;}'

# insert a blank line below every line which matches “regex”
sed '/regex/G'

# insert a blank line above and below every line which matches “regex”
sed '/regex/{x;p;x;G;}'

(more…)

Continue Reading100 SED Commands