【发布时间】:2014-11-18 18:18:16
【问题描述】:
我希望从大约 16,000 多个文件的第 1 行中删除这一特定行。
注射的开始是:
<?php if(!isset($GLOBALS`
Middle of the injection is:
`7860msvd`
And end of the injection is:
`oqggbrtstz-1; ?>
此内容仅在 1 行(第一行)
不知道怎么做,但我这里有以下内容;
sed -i -e '1 s/.*<\?php if\(\!isset\(\$GLOBALS\.*7860msvd.*oqggbrtstz-1; ?>//g'
error: sed: -e expression #1, char 67: Unmatched ( or \(
任何帮助都会很棒。
【问题讨论】:
-
可以在一个文件中进行多次注射吗?可能是这里不需要的部分,例如中间还是结尾?
-
是 1 行还是(如示例似乎显示)多行作为模式?