rar

jumpserver的安装

时光毁灭记忆、已成空白 提交于 2019-12-05 13:54:42
安装jumpserver 1.关闭防火墙 关闭SElinux systemctl stop firewalld.service systemctl disable firewalld.service setenforce 0 2.修改字符,防止乱码(这步完事之后就变成中文的虚拟机了。。。我的天) localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8 echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n 3.下载依赖包 yum -y install wget libselinux-python sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git 4.进到src目录下 cd /usr/local/src/ 5.下载python包 wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz 6.解压python包 tar xvf Python-3.6.1.tar.xz 7.进入到Python-3.6.1目录下 cd Python-3.6.1 8.对于python进行编译安装 ./configure make

tar指令集合

依然范特西╮ 提交于 2019-12-05 09:27:40
把常用的tar解压命令总结下,当作备忘: tar -c: 建立压缩档案 -x:解压 -t:查看内容 -r:向压缩归档文件末尾追加文件 -u:更新原压缩包中的文件 这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个。下面的参数是根据需要在压缩或解压档案时可选的。 -z:有gzip属性的 -j:有bz2属性的 -Z:有compress属性的 -v:显示所有过程 -O:将文件解开到标准输出 下面的参数-f是必须的 -f: 使用档案名字,切记,这个参数是最后一个参数,后面只能接档案名。 # tar -cf all.tar *.jpg 这条命令是将所有.jpg的文件打成一个名为all.tar的包。-c是表示产生新的包,-f指定包的文件名。 # tar -rf all.tar *.gif 这条命令是将所有.gif的文件增加到all.tar的包里面去。-r是表示增加文件的意思。 # tar -uf all.tar logo.gif 这条命令是更新原来tar包all.tar中logo.gif文件,-u是表示更新文件的意思。 # tar -tf all.tar 这条命令是列出all.tar包中所有文件,-t是列出文件的意思 # tar -xf all.tar 这条命令是解出all.tar包中所有文件,-x是解开的意思 压缩 tar –cvf jpg.tar *.jpg

Python解压 rar、zip、tar文件

梦想的初衷 提交于 2019-12-04 23:48:28
Q1 :如何解压 rar 压缩包文件? A : - Step1:检查是否有 rarfile 第三方库,若没有该模块,则需要进行安装 ; - Step2:参考代码如下: import rarfile import os rar=rarfile.RarFile(filename, mode='r') # mode的值只能为'r' # 判断同名文件夹是否存在,若不存在则创建同名文件夹 if os.path.isdir(os.path.splitext(filename)[0]): rf_list = rf.namelist() # 得到压缩包里所有的文件 print('rar文件内容', rf_list) else: os.mkdir(os.path.splitext(filename)[0]) rar.extractall(os.path.splitext(filename)[0]) # 解压文件 rar.close() # 关闭文件,必须有,释放内存 Q2 :如何解压 zip 压缩包文件? A: 可以使用RPA设计器自带的【zip 解压】组件,编写代码,则可以参考如下(注意检查是否 zipfile 第三方库,设计器自带,可直接调用): import zipfile import os zip_file = zipfile.ZipFile(filename) if os.path

ubuntu使用----小技巧&常用命令

霸气de小男生 提交于 2019-12-04 18:43:33
0.shell翻页且保持记录:Ctrl+L 1.监控linux系统资源的好工具sysstat,CPU、内存、磁盘IO、网络等等。 其可以即时,也可以每隔10分钟生成一次日志,每天保存一份日志。然后可以查看具体某一天的情况 -o选项是指定输出到某文件,只是其实二进制的,不能直接用cat查看。而使用输出重定向> output则不是二进制,可以直接用cat,这相当于在shell的选项,前者是sar命令的选项。如果是要读-o出来的二进制文件,要用sar命令读,加上-f选项 2.更改终端中主机名和目录名的颜色,这样每次键入命令后可以看清楚分隔, 方法: 更改./bashrc文件的内容,这个文件在自己家目录中,是个隐藏文件,要用ls -a才能找到 # force_color_prompt=yes #Ubuntu中只需要将这行的注释去掉就行 将上面这一行代码的注释去掉就行 3. 计算文件一共多少行 wc -l filename 输出文件前几行 head -n 5 filename 输出文件后几行 tail -n 5 filename 4.关机重启命令 重启命令 : 1、reboot 2、shutdown -r now 立刻重启 3、shutdown -r 10 过10分钟自动重启 4、shutdown -r 20:35 在时间为20:35时候重启 关机命令 : 1、halt 立刻关机(一般加-p

Decompress Rar file in Android

本小妞迷上赌 提交于 2019-12-04 14:05:01
问题 I want to learn how to decompress a .rar file in android. Zip files can be easily decompressed using ZipStream. Is there any similar way for rar files. 回答1: I just realized this with jUnrar from here https://github.com/edmund-wagner/junrar Create a new package within your Android src directory called com.github.junrar You should delete com.github.junrar.vfs2 because it has some dependencies and you probably won't use it anyway. You will probably get some errors about the logger class. You can

Packing (WinRAR) with a password on a group of files

馋奶兔 提交于 2019-12-04 03:47:12
问题 I'll try and make this as short as i can. I'm looking for a .bat file to rar up and password folders with files in them, but the problem is a little more tricky than i thought, each folder can have anything from 1 to 400 files in it, i have two .txt files, one with the desired number of.rar file names and one with the desired number of .rar passwords, so txt doc's look like this, first is filenames.txt : FAD01 FAD02 FAD03 and so on up to FAD110 and another .txt file GAP01 GAP02 GAP03 GAP04

文件上传漏洞

可紊 提交于 2019-12-03 23:10:45
1.前端检测绕过 【1】前端绕过,利用控制台同名函数覆盖文件检测函数 2.MIME检测绕过 【1】例如图片,则将brupsuite抓包修改Content-Type,例如图片mime为image/jepg 3.apache漏洞 【1】若上传php木马,则可将文件名改为xxx.php.rar 因为apache无法解析.rar类型(也可将rar换为其他apache解析不了的类型),则会绕过rar解析php类型 【2】先上传hitaccess类型文件,再上传例如包含php代码的图片,利用hitaccess将其他类型文件解析为php类型(所以可以将图片类型解析为php类型执行) hitaccess类型文件中的代码 <FilesMatch 文件名> SetHandler application/x-httpd-php </FilesMatch> 4.php漏洞 【1】php 5.39以下版本,可以用%00进行截断 5.变身绕过黑名单 后缀名可改为,PHP,Php,php5,php4,phphtml等类型文件 。。。。。。。持续更新中。。。。。。。。。 来源: https://www.cnblogs.com/WTa0/p/11810835.html

How to extract ZIP files with WinRAR command line?

微笑、不失礼 提交于 2019-12-03 15:39:13
问题 While trying to extract zip files I get the error: c:\path\name.zip is not RAR archive No files to extract My code is: p.StartInfo.FileName = @"C:\Program Files\WinRAR\rar.exe"; p.StartInfo.Arguments = string.Format("x -o- {2} \"{0}\" * \"{1}\"\\ ", szFN, outFolder, passWord == null ? "" : string.Format("-p\"{0}\"", passWord)); The GUI version can extract zip and 7z files. Why doesn't this work? How can I extract zip and 7z files? (NOTE: I have different source code for 7zip. I guess I can

Decompress Rar file in Android

可紊 提交于 2019-12-03 08:09:34
I want to learn how to decompress a .rar file in android. Zip files can be easily decompressed using ZipStream. Is there any similar way for rar files. I just realized this with jUnrar from here https://github.com/edmund-wagner/junrar Create a new package within your Android src directory called com.github.junrar You should delete com.github.junrar.vfs2 because it has some dependencies and you probably won't use it anyway. You will probably get some errors about the logger class. You can either remove the few logging lines or like i did write a tiny wrapper which communicates with android.util