=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== lxctl-0.3.1+debian/LxctlHelpers/helper.pm-176- lxctl-0.3.1+debian/LxctlHelpers/helper.pm:177: system("lvcreate -L $size -n $name $vg 1>/dev/null"); lxctl-0.3.1+debian/LxctlHelpers/helper.pm-178-} ############################################## lxctl-0.3.1+debian/LxctlHelpers/helper.pm-198- lxctl-0.3.1+debian/LxctlHelpers/helper.pm:199: system("yes | mkfs.$fstype $dev_name $opts 1>/dev/null"); lxctl-0.3.1+debian/LxctlHelpers/helper.pm-200-} ############################################## lxctl-0.3.1+debian/LxctlHelpers/helper.pm-206- lxctl-0.3.1+debian/LxctlHelpers/helper.pm:207: system("umount $mounted_path"); lxctl-0.3.1+debian/LxctlHelpers/helper.pm-208-} ############################################## lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-19- my ($self, $cmd) = @_; lxctl-0.3.1+debian/LxctlHelpers/SSH.pm:20: (system("ssh -p $_ssh_port $_ssh_user\@$_ssh_server '$cmd'") == 0) or die "Failed to remotely execute '$cmd'.\n"; lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-21-} ############################################## lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-27- lxctl-0.3.1+debian/LxctlHelpers/SSH.pm:28: (system("scp -r -P $_ssh_port $_ssh_user\@$_ssh_server:$from $to") == 0) or die "Failed to copy.\n\n"; lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-29- return 1; ############################################## lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-36- lxctl-0.3.1+debian/LxctlHelpers/SSH.pm:37: (system("scp -r -P $_ssh_port $from $_ssh_user\@$_ssh_server:$to") == 0) or die "Failed to copy.\n\n"; lxctl-0.3.1+debian/LxctlHelpers/SSH.pm-38- return 1; ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-66- # Creating empty file of desired size. It's a bit slower then system dd, but still rather fast (around 10% slower then dd) lxctl-0.3.1+debian/Lxctl/create.pm:67: system("dd if=/dev/zero of=$root_mount_path/$options{'contname'}.raw bs=$bs count=$count"); lxctl-0.3.1+debian/Lxctl/create.pm-68-# open my $raw_file, '>' , "$root_mount_path/$options{'contname'}.raw"; ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-101- lxctl-0.3.1+debian/Lxctl/create.pm:102: system("mount -t $root_mp{'fs'} -o $root_mp{'opts'} $root_mp{'from'} $root_mp{'to'} 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/create.pm-103- } ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-195- lxctl-0.3.1+debian/Lxctl/create.pm:196: system("tar xf $template -C $root_mount_path/$options{'contname'} 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/create.pm-197- ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-263- eval { lxctl-0.3.1+debian/Lxctl/create.pm:264: system("rm $root_mount_path/$options{'contname'}/rootfs/etc/ssh/ssh_host_*"); lxctl-0.3.1+debian/Lxctl/create.pm-265- 1; ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-269- lxctl-0.3.1+debian/Lxctl/create.pm:270: system("ssh-keygen -q -t rsa -f $root_mount_path/$options{'contname'}/rootfs/etc/ssh/ssh_host_rsa_key -N ''"); lxctl-0.3.1+debian/Lxctl/create.pm:271: system("ssh-keygen -q -t dsa -f $root_mount_path/$options{'contname'}/rootfs/etc/ssh/ssh_host_dsa_key -N ''"); lxctl-0.3.1+debian/Lxctl/create.pm-272-} ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-285- ## Deb only lxctl-0.3.1+debian/Lxctl/create.pm:286: system("chroot $root_mount_path/$options{'contname'}/rootfs/ apt-get $options{'pkgopt'} install $options{'addpkg'}"); lxctl-0.3.1+debian/Lxctl/create.pm-287- ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-321- my $setter = Lxctl::set->new(%options); lxctl-0.3.1+debian/Lxctl/create.pm:322: $setter->set_macaddr(); lxctl-0.3.1+debian/Lxctl/create.pm-323- ############################################## lxctl-0.3.1+debian/Lxctl/create.pm-327- lxctl-0.3.1+debian/Lxctl/create.pm:328: $setter->set_ipaddr(); lxctl-0.3.1+debian/Lxctl/create.pm-329- $setter->set_netmask(); ############################################## lxctl-0.3.1+debian/Lxctl/set.pm-166- $step++; lxctl-0.3.1+debian/Lxctl/set.pm:167: system("ip link set $old_name down"); lxctl-0.3.1+debian/Lxctl/set.pm-168- $step++; lxctl-0.3.1+debian/Lxctl/set.pm:169: system("ip link set $old_name name $options{'ifname'}"); lxctl-0.3.1+debian/Lxctl/set.pm-170- $step++; lxctl-0.3.1+debian/Lxctl/set.pm:171: system("ip link set $options{'ifname'} up"); lxctl-0.3.1+debian/Lxctl/set.pm-172- $step++; ############################################## lxctl-0.3.1+debian/Lxctl/set.pm-233- die "Failed to change password!\n\n" lxctl-0.3.1+debian/Lxctl/set.pm:234: if system("echo '$options{'userpasswd'}' | chroot $root_mount_path/$options{'contname'}/rootfs/ chpasswd"); lxctl-0.3.1+debian/Lxctl/set.pm-235- ############################################## lxctl-0.3.1+debian/Lxctl/set.pm-286- lxctl-0.3.1+debian/Lxctl/set.pm:287: (system("lvextend -L $desired_size /dev/$vg/$options{'contname'}") == 0) or die "Failed to extend logical volume.\n\n"; lxctl-0.3.1+debian/Lxctl/set.pm:288: (system("resize2fs /dev/$vg/$options{'contname'}") == 0) or die "Failed to resize filesystem.\n\n"; lxctl-0.3.1+debian/Lxctl/set.pm-289- ############################################## lxctl-0.3.1+debian/Lxctl/set.pm-369- # Dirty hack. set_macaddr used from create and should be able to work without --maccaddr option. lxctl-0.3.1+debian/Lxctl/set.pm:370: $self->set_macaddr() if defined($options{'macaddr'}); lxctl-0.3.1+debian/Lxctl/set.pm:371: $self->set_ipaddr(); lxctl-0.3.1+debian/Lxctl/set.pm-372- $self->set_netmask(); ############################################## lxctl-0.3.1+debian/Lxctl/list.pm-109- if ($ghost == 0) { lxctl-0.3.1+debian/Lxctl/list.pm:110: my $df = `df -B 1 $root_path`; lxctl-0.3.1+debian/Lxctl/list.pm-111- my ($total, $free) = $df =~ m/\s+(\d+)\s+\d+\s+(\d+)/g; ############################################## lxctl-0.3.1+debian/Lxctl/start.pm-59- print color "reset"; lxctl-0.3.1+debian/Lxctl/start.pm:60: system("sed -i.bak 's#$mp##' /etc/fstab"); lxctl-0.3.1+debian/Lxctl/start.pm-61- ############################################## lxctl-0.3.1+debian/Lxctl/start.pm-89- if ($mount_result !~ m/on $mp{'to'}/) { lxctl-0.3.1+debian/Lxctl/start.pm:90: (system("mount -t $mp{'fs'} -o $mp{'opts'} $mp{'from'} $mp{'to'}") == 0) or die "Failed to mount $mp{'from'} to $mp{'to'}\n\n"; lxctl-0.3.1+debian/Lxctl/start.pm-91- } ############################################## lxctl-0.3.1+debian/Lxctl/start.pm-114- $cmd .= " -o $mp{'opts'} $mp{'from'} $to"; lxctl-0.3.1+debian/Lxctl/start.pm:115: system("$cmd"); lxctl-0.3.1+debian/Lxctl/start.pm-116- } ############################################## lxctl-0.3.1+debian/Lxctl/mount.pm-46- $cmd .= " -o $options{'mountoptions'} $options{'from'} $root_path/$contname/rootfs/$options{'to'}"; lxctl-0.3.1+debian/Lxctl/mount.pm:47: system("$cmd"); lxctl-0.3.1+debian/Lxctl/mount.pm-48- } ############################################## lxctl-0.3.1+debian/Lxctl/mount.pm-162- eval { lxctl-0.3.1+debian/Lxctl/mount.pm:163: system("$cmd"); lxctl-0.3.1+debian/Lxctl/mount.pm-164- } or do { ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-32- $options{'afterstart'} ||= 0; lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:33: $options{'rootsz'} ||= (`echo -n \$(ssh $options{'remuser'}\@$options{'fromhost'} "egrep DISKSPACE /etc/vz/conf/$options{'remname'}.conf | cut -d= -f2 | cut -d: -f1 | cut -d'\\"' -f2")`) . "K"; lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-34- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-47- die "Failed to stop VZ container $options{'remname'}!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:48: if system("ssh $options{'remuser'}\@$options{'fromhost'} vzctl stop $options{'remname'} 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-49- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-51- die "Failed to mount VZ container $options{'remname'}!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:52: if system("ssh $options{'remuser'}\@$options{'fromhost'} vzctl mount $options{'remname'} 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-53- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-56- die "Failed to re-rsync root filesystem!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:57: if system("rsync $rsync_opts -e ssh $options{'remuser'}\@$options{'fromhost'}:/var/lib/vz/root/$options{'remname'}/ $root_mount_path/$options{'contname'}/rootfs/ 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-58- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-60- die "Failed to unmount VZ container $options{'remname'}!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:61: if system("ssh $options{'remuser'}\@$options{'fromhost'} vzctl umount $options{'remname'} 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-62- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-72- die "Failed to create container!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:73: if system("lxctl create $options{'contname'} --empty --rootsz $options{'rootsz'} --save"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-74- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-77- print "There were some errors during rsyncing root filesystem. It's definetely NOT okay if it was the only rsync pass.\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:78: if system("rsync $rsync_opts -e ssh $options{'remuser'}\@$options{'fromhost'}:/var/lib/vz/root/$options{'remname'}/ $root_mount_path/$options{'contname'}/rootfs/ 1>/dev/null"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-79- ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-83- print "Found upstart openvz.conf. Modifying...\n"; lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:84: system("sed -i.bak 's/^.*devpts.*\$//' $root_mount_path/$options{'contname'}/rootfs/etc/init/openvz.conf"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-85- } ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-88- die "Failed to start container $options{'contname'}!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:89: if system("lxctl start $options{'contname'}"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-90- } ############################################## lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-97- die "Failed to migrate MTU!\n\n" lxctl-0.3.1+debian/Lxctl/vz2lxc.pm:98: if system("lxctl set $options{'contname'} --mtu \$(ssh $options{'remuser'}\@$options{'fromhost'} \"sed -n 's/^[\\t ]\\+mtu[\\t ]\\+\\([0-9]\\+\\)/\\1/p' /var/lib/vz/private/$options{'remname'}/etc/network/interfaces | awk '{print \$2}'\")"); lxctl-0.3.1+debian/Lxctl/vz2lxc.pm-99-} ############################################## lxctl-0.3.1+debian/Lxctl/migrate.pm-83- my $rsync_to = "$options{'remuser'}\@$options{'tohost'}:$root_mount_path/$options{'remname'}/"; lxctl-0.3.1+debian/Lxctl/migrate.pm:84: my $ret = !system("rsync $rsync_opts $rsync_from $rsync_to") lxctl-0.3.1+debian/Lxctl/migrate.pm-85- or print "There were some problems during syncing root filesystem. It's ok if this is the first pass.\n\n"; ############################################## lxctl-0.3.1+debian/Lxctl/migrate.pm-122- lxctl-0.3.1+debian/Lxctl/migrate.pm:123: system("lxctl set $options{'contname'} --autostart 0"); lxctl-0.3.1+debian/Lxctl/migrate.pm-124-} ############################################## lxctl-0.3.1+debian/Lxctl/destroy.pm-55- eval { lxctl-0.3.1+debian/Lxctl/destroy.pm:56: system("umount $mounted_path"); lxctl-0.3.1+debian/Lxctl/destroy.pm-57- } or do { ############################################## lxctl-0.3.1+debian/Lxctl/destroy.pm-65-# $dm_vg =~ s/-/--/g; lxctl-0.3.1+debian/Lxctl/destroy.pm:66:# system("dmsetup remove -c $dm_vg-$options{'contname'}"); lxctl-0.3.1+debian/Lxctl/destroy.pm:67: system("lvremove -f /dev/$vg/$options{'contname'}"); lxctl-0.3.1+debian/Lxctl/destroy.pm-68- } ############################################## lxctl-0.3.1+debian/bash_completion.d/lxctl-15- 1) lxctl-0.3.1+debian/bash_completion.d/lxctl:16: COMMANDS=`echo $BUILTIN $LXCTL_PLUGINS` lxctl-0.3.1+debian/bash_completion.d/lxctl-17- COMPREPLY=( $( compgen -W "$COMMANDS" -- "$cur" ) ) ############################################## lxctl-0.3.1+debian/bash_completion.d/lxctl-24- use_vmname="\${LXCTL_PLUGIN_USE_VMNAME_$command}" lxctl-0.3.1+debian/bash_completion.d/lxctl:25: use_vmname=`eval echo "$use_vmname"` lxctl-0.3.1+debian/bash_completion.d/lxctl-26- if [ $use_vmname == "yes" ]; then ############################################## lxctl-0.3.1+debian/bash_completion.d/lxctl-30- params="\${LXCTL_PLUGIN_$command}" lxctl-0.3.1+debian/bash_completion.d/lxctl:31: params=`eval echo "$params"` lxctl-0.3.1+debian/bash_completion.d/lxctl-32- if [ -n "$params" ] ; then ############################################## lxctl-0.3.1+debian/bash_completion.d/lxctl-41- params="\${LXCTL_PLUGIN_$command}" lxctl-0.3.1+debian/bash_completion.d/lxctl:42: params=`eval echo "$params"` lxctl-0.3.1+debian/bash_completion.d/lxctl-43- if [ -n "$params" ] ; then ############################################## lxctl-0.3.1+debian/Lxc/object.pm-359- } lxctl-0.3.1+debian/Lxc/object.pm:360: my $status = `lxc-info --name $name 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-361- my $lxc_upstream_version = `lxc-version`; ############################################## lxctl-0.3.1+debian/Lxc/object.pm-415- } lxctl-0.3.1+debian/Lxc/object.pm:416: my $status = system("lxc-attach --name $name 2>&1"); lxctl-0.3.1+debian/Lxc/object.pm-417- if ($status eq "0") { ############################################## lxctl-0.3.1+debian/Lxc/object.pm-432- } lxctl-0.3.1+debian/Lxc/object.pm:433: my $status = `lxc-freeze --name $name 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-434- if ($status eq "") { ############################################## lxctl-0.3.1+debian/Lxc/object.pm-448- } lxctl-0.3.1+debian/Lxc/object.pm:449: my $status = `lxc-unfreeze --name $name 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-450- if ($status eq "") { ############################################## lxctl-0.3.1+debian/Lxc/object.pm-475- lxctl-0.3.1+debian/Lxc/object.pm:476: my $status = `lxc-kill --name $name $signal 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-477- if ($status eq "") { ############################################## lxctl-0.3.1+debian/Lxc/object.pm-523- lxctl-0.3.1+debian/Lxc/object.pm:524: my $status = `lxc-start $myarg 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-525- chop($status); ############################################## lxctl-0.3.1+debian/Lxc/object.pm-546- } lxctl-0.3.1+debian/Lxc/object.pm:547: my $status = `lxc-stop --name $name $myarg 2>&1`; lxctl-0.3.1+debian/Lxc/object.pm-548- if ($status eq "") { ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-359- } lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:360: my $status = `lxc-info --name $name 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-361- my $lxc_upstream_version = `lxc-version`; ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-415- } lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:416: my $status = system("lxc-attach --name $name 2>&1"); lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-417- if ($status eq "0") { ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-432- } lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:433: my $status = `lxc-freeze --name $name 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-434- if ($status eq "") { ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-448- } lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:449: my $status = `lxc-unfreeze --name $name 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-450- if ($status eq "") { ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-475- lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:476: my $status = `lxc-kill --name $name $signal 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-477- if ($status eq "") { ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-523- lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:524: my $status = `lxc-start $myarg 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-525- chop($status); ############################################## lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-546- } lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm:547: my $status = `lxc-stop --name $name $myarg 2>&1`; lxctl-0.3.1+debian/.pc/01-fhs.patch/Lxc/object.pm-548- if ($status eq "") {