Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: nimafire
7,459
Posted By nimafire
logically echo $TOTAL must print correct number,
logically echo $TOTAL must print correct number,
7,459
Posted By nimafire
i appreciate your help. output still 0, ive...
i appreciate your help.
output still 0,
ive trace the code:

[root@srv ~]# bash -x script.sh
+ LOG=/var/log/scan.log
+ TOTAL=0
+ grep Virus /var/log/scan.log
+ read _ _ NUM
+ TOTAL=4
+ read...
7,459
Posted By nimafire
How find lines, export sum into file?
hello
im working on a bash script to calculate number of viruses found and log on log file.
ive paste some part of log file that are important for this script:



----------- SCAN SUMMARY...
8,982
Posted By nimafire
Problem with rsync command
Hello
im working on my bash script, in rsync part i try this command to rsync all folders except this folder 'wp-content/cache'
which has tousends of file and i dont want to rsync content :
...
5,057
Posted By nimafire
Compare directories and copy differences (files) in a another directory
Hey
im working on script that can compare 2 directory and check difference, then copy difference files in third diretory.
here is the story:
in folder one we have 12 subfolder and in each of them...
Forum: Cybersecurity 09-01-2019
5,804
Posted By nimafire
oh. ok i will check you post again --- Post...
oh. ok i will check you post again

--- Post updated at 09:37 AM ---

ok i get what you mean
question is is it possible to log binery?
your solution is awesome when we dont require curl,...
Forum: Cybersecurity 08-27-2019
5,804
Posted By nimafire
mm awsome method i havent hear abut it and a...
mm awsome method i havent hear abut it
and a question regard your method,
most od binery are not writable to add this header:

cat /usr/bin/curl
#!/bin/sh
/usr/bin/php /usr/bin/mystuff.php $@...
Forum: Cybersecurity 08-25-2019
5,804
Posted By nimafire
version of virus that our server and several...
version of virus that our server and several servers around world is hacked by this virus is more complicated than what they notice on that link,
so you mean there is no way to have lock function...
Forum: Cybersecurity 08-25-2019
5,804
Posted By nimafire
mm have you read this article? kthrotlds...
mm have you read this article?
kthrotlds CVE-2019-10149 Exim/cPanel | Server 24/7 (https://www.srv24x7.com/kthrotlds-cve-2019-10149-exim/)
its new Bitcoin mining virus and im working hard to remove...
Forum: Red Hat 08-24-2019
10,529
Posted By nimafire
Hey, tx from your reply mmm it dosend matter, i...
Hey, tx from your reply
mmm it dosend matter, i think this FEATURE is base on kernel,
any way, im talking about centos 7
Forum: Cybersecurity 08-24-2019
5,804
Posted By nimafire
Alternative for chattr
Hello
im working on "remover script" which try to remove "kthrotlds MINER VIRUS"
in next part of my remover script i have to work on files that it destroyed,
virus use chattr to open and lock...
Forum: Red Hat 08-17-2019
10,529
Posted By nimafire
Block any root Privilege
Hey
is there any method (base on kernel) to block adding any root Privilege?
only "root" account allow on system and no one can add new root Privilege, ?
581
Posted By nimafire
Read file and add it into part of file
Hello
let me explain senario.
there is a file which name is config and it store main software variable:

file main.conf contents:

update="1"
log_login="0"
allow_ports=""...
682
Posted By nimafire
still oneline is output of read -p "enter...
still oneline is output of

read -p "enter STR1 END1 STR2 END2:"
if (( END2 - STR2 != END1 - STR1 )); then echo different ranges.; fi
DLT=$((STR2 - STR1))
#for ((i=STR1;i<=END1;++i))
for...
682
Posted By nimafire
tx but output is just a line: ...
tx
but output is just a line:

[root@localhost ~]# sh mm
enter STR1 END1 STR2 END2:159 200 1159 2000
2a05:b80:0:235::0/0
682
Posted By nimafire
Create and paste two file into one
Hello
i want to create this list:
2a05:b80:0:235::9f/1159
2a05:b80:0:235::a0/1160
2a05:b80:0:235::a1/1161
2a05:b80:0:235::a2/1162
2a05:b80:0:235::a3/1163

so write this shell as well:...
1,217
Posted By nimafire
Generate hexadecimal
Hello
I'm working on a script to list all ipv6 from given address
so I've run this script which create hex part of ipv6

STR2=159
END2=200
SUM2=`expr $END2 - $STR2`
for ((i=STR2;i<=END2;++i));...
1,711
Posted By nimafire
mm im not familiar with awk options, now with...
mm im not familiar with awk options, now with this code i have to read more about awk
1,711
Posted By nimafire
nice job, is it possible to have thsis logic...
nice job,
is it possible to have thsis logic without awk?
like with source, read, while .... ?
1,711
Posted By nimafire
can you explain what "NR" do ? and how can i...
can you explain what "NR" do ?
and how can i have this part IP[1], IP[1], IP[2] in loop?
i mean if ip file has 200 row, 200 file create and if it has 127 row, 127 file create, it depends on line...
1,711
Posted By nimafire
mm this is my personal script i have create...
mm this is my personal script
i have create file with 1000 line with this format:
ip/port like 192.168.1.1/1055, let say ip.txt and create a core.sh file

main part of this project is when...
1,711
Posted By nimafire
what you mean ? this script try to add ip and...
what you mean ?
this script try to add ip and port to our firewall
im confused how seprate ip and port from source file and add them by echo to file
1,711
Posted By nimafire
Echo with loop
Hello
i have a file with this format:

ip.txt content:
192.168.1.1/2020
192.136.1.2/2028
192.168.1.10/3047
....

need to create 1000 files and each files content, import data from ip.txt...
846
Posted By nimafire
Check space and run command
Hey
i have problem with cut and print column
problem is i want to execute shell script to run df -h /tmp
if the result ( Use% ) was more than 50% , run rm -rf /tmp/*
any idea how cut the result...
715
Posted By nimafire
export REMOTKERNEL=$( /usr/bin/curl -s ...
export REMOTKERNEL=$( /usr/bin/curl -s http://xxxx/kernel.txt (http://prajith.in/version.txt) )
export REMOTYUM=$( /usr/bin/curl -s http://xxxx/yum.txt (http://prajith.in/version.txt) )
if [...
Showing results 1 to 25 of 72

 

Featured Tech Videos

All times are GMT -4. The time now is 10:07 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy