root

Running installed application with root on Android Emulator

一世执手 提交于 2020-01-01 20:00:43
问题 I'm running Android Emulator with root access. I install RootExplorer using adb install RootExplorer.apk Install is OK But when I launch RootExplorer it cannot display system folders. In eclipse log I can see permission denied... I thought that all applications in Android Emulator run with root permissions.. How to launch apk with root permissions? 回答1: I thought that all applications in Android Emulator run with root permissions.. It is not true. Just that emulator is rooted. It doesn't mean

How to properly create a root view controller?

荒凉一梦 提交于 2020-01-01 19:41:08
问题 After upgrading to xCode 4.2 I am getting the following warning... Applications are expected to have a root view controller at the end of application launch After reading as much as I could find on line about the RootViewController I am not sure whether I have created my root view controller properly. I created it a long time ago when I was first learning to program in xCode. One question I have is it ok to name the root view controller something other than RootViewController. Every example I

Happycorp:1 Vulnhub Walkthrough

自古美人都是妖i 提交于 2020-01-01 16:14:35
靶机链接: https://www.vulnhub.com/entry/happycorp-1,296/ 网络主机扫描::: 主机端口扫描: NFS文件系统,尝试挂载试试 mount -t nfs 10.10.202.135:/home/karl /mnt 提示没权限打开。这里暂时放一放,看看HTTP方面,有个admin.php后台能不能上传,拿shell web页面收集用户信息: heather 提示密码错误 carolyn 账户不存在 rodney 账户不存在 jennifer 账户不存在 存在账户枚举,这里进行爆破top 500 weak password 没成功,放弃 尝试post username SQL注入,失败 继续看看NFS如何能读取到.SSH文件夹下的内容 尝试看下UID,我们能否创建UID相同的用户去读取文件呢 ╰─ groupadd --gid 1001 test ╰─ useradd --uid 1001 --group test pentest 获取到了秘钥,复制下来,保存成文件,尝试使用用户karl用户登录,结果。。。。 这秘钥密码是啥,先爆破试试,工具 ssh2john.py https://github.com/koboi137/john python ssh2john.py /root/key.txt > /root/sshkey_login ╰─

使用python操作XML增删改查

我怕爱的太早我们不能终老 提交于 2020-01-01 16:02:40
使用python操作XML增删改查 什么是XML? XML 指可扩展标记语言(EXtensible Markup Language) XML 是一种标记语言,很类似 HTML XML 的设计宗旨是传输数据,而非显示数据 XML 标签没有被预定义。您需要自行定义标签。 XML 被设计为具有自我描述性。 XML 是 W3C 的推荐标准 参考文献 官方文档 导入模块 import xml.etree.ElementTree as ET 读取解析XML 可以从xml文件、字符串中解析 新建一个xml文件 <?xml version="1.0" encoding="UTF-8"?> <students> <student> <name>张三</name> <age>18</age> <score>89</score> </student> <student> <name>李四</name> <age>19</age> <score>81</score> </student> <student> <name>王五</name> <age>17</age> <score>92</score> </student> </students> 从xml文件中读取,使用getroot()获取根节点,得到的是一个Element对象 tree = ET.parse('students.xml') root

Python—XML

痴心易碎 提交于 2020-01-01 16:02:15
什么是xml XML 指可扩展标记语言( EX tensible M arkup L anguage) XML 是一种 标记语言 ,很类似 HTML XML 的设计宗旨是 传输数据 ,而非显示数据 XML 标签没有被预定义。您需要 自行定义标签 。 XML 被设计为具有 自我描述性 。 XML 是 W3C 的推荐标准 在python中可以用以下模块操作xml   以下是xml文件: <?xml version="1.0"?> <data> <country name="Liechtenstein"> <rank updated="yes">2</rank> <year>2008</year> <gdppc>141100</gdppc> <neighbor name="Austria" direction="E"/> <neighbor name="Switzerland" direction="W"/> </country> <country name="Singapore"> <rank updated="yes">5</rank> <year>2011</year> <gdppc>59900</gdppc> <neighbor name="Malaysia" direction="N"/> </country> <country name="Panama"> <rank

6.svn 钩子功能

≯℡__Kan透↙ 提交于 2020-01-01 12:02:25
钩子功能 该功能其实是依据脚本实现,该脚本的写法是shell 是一样的 。 钩子脚本就是对某些版本库触发的程序 。 类似 inotify 钩子的目录 在每一个svn的项目工程库下面。 里面会有模板。 [root@localhost sadoc]# pwd/application/svndata/sadoc[root@localhost sadoc]# lltotal 8drwxr-xr-x 2 root root 79 Dec 29 12:06 confdrwxr-sr-x 6 root root 253 Dec 31 12:39 db-r--r--r-- 1 root root 2 Dec 28 12:37 formatdrwxr-xr-x 2 root root 231 Dec 28 12:37 hooksdrwxr-xr-x 2 root root 41 Dec 28 12:37 locks-rw-r--r-- 1 root root 229 Dec 28 12:37 README.txt[root@localhost sadoc]# ll hooks/total 36-rw-r--r-- 1 root root 1977 Dec 28 12:37 post-commit.tmpl #提交完成时触发事务 -rw-r--r-- 1 root root 1638 Dec 28

NSTask, command line tools and root

ぐ巨炮叔叔 提交于 2020-01-01 09:43:14
问题 I'm working on an app that needs to use dd (I do this with a shell script in the app bundle, that collects parameters from the app itself, makes some checks and then launches dd). To make this operation I need to call dd with root, and I already looked at several solutions on StackOverflow. The simplest to implements seemed to me this one http://www.sveinbjorn.org/STPrivilegedTask Problem is that my NSTask makes some complex read/write operations (not present in STPrivilegedTask) and does not

Windows 7下安装Ubuntu16.04的方法

大兔子大兔子 提交于 2020-01-01 06:01:25
1. 下载 Ubuntu 地址: http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso?_ga=1.87710942.717706839.1463203164 2. 下载EasyBCD工具(后面会使用该工具来安装Ubuntu) http://www.linuxidc.com/Linux/2012-10/72140.htm 3. 打开EasyBCD, 默认只有一个入口(windows 7) 需要添加一个Ubuntu的条目, 选择”添加新条目“ ——> 选择“NeoGrub” ——> 点击"安装" ——> 点击”配置“, 弹出menu.lst. menu.lst中内容用如下内容替换: title Install Ubuntu root (hd0,5) kernel (hd0,5)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-16.04-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8 initrd (hd0,5)/initrd.lz 4. 把ubuntu-16.04-desktop-amd64.iso拷贝到(hd0,5)的根目录下 5. 同时解压ubuntu-16.04-desktop-amd64

nginx安装及其配置详细教程

孤街醉人 提交于 2020-01-01 04:04:24
下面使用ftp+nginx搭建一个简单的服务器 ftp用于文件的传输 nginx提供http服务 nginx服务器的安装和配置可以参照之前的教程: nginx安装及其配置详细教程 下面介绍ftp服务的安装及其配置 1 安装过程 1 查看是否已经安装了vsftpd # rpm -qa | grep vsftpd 如果出现下面的信息表示已经安装过了,如果没有就是没有安装。 2.没有安装的话,执行下面的命令进行安装 # yum -y install vsftpd -y:对所有的提问都回答“ yes ”; 出现complete表示安装完成。 安装过程还是非常的简单的。 2 防火墙开启21号端口 /sbin/iptables -I INPUT -p tcp --dport 21 -j ACCEPT /etc/rc.d/init.d/iptables save 上面是两条命令需要分别执行 到这里外网就可以访问进去了。 3 修改selinux 外网是可以访问上去了,可以发现没法返回目录(使用ftp的主动模式,被动模式还是无法访问),也上传不了,这是因为selinux的原因。 执行一下命令查看状态 # getsebool -a | grep ftp 执行上面命令,再返回的结果看到两行都是 off ,代表,没有开启外网的访问 依次执行下面两条命令进行解决: [root@admin ~]#

Execute sudo command in C with system()

妖精的绣舞 提交于 2020-01-01 03:36:44
问题 I am writing a piece of C code that will run some sudo command in system("sudo ip route ...") function call. This call is being done in a pthread created by the main thread, and the main program is being executed with sudo ./program when starting up. When I run the program, Ubuntu prompts me to enter password for nobody: [sudo] password for nobody: I also tried to do system("ip route ...") straightly but it gives me negative return meaning that it is not executed. What should I do in the