Beispiel #1
0
def edit_one_terlist(self):
    terlist_control.tabmenu_terlist(self)
    localmac = terlist_control.get_localmac()
    terlist_control.set_maclist(self, 0, localmac)
    terlist_control.apply(self)
    time.sleep(40)
    data = terlist_control.ssh_get_trusted()
    assert localmac.upper() in data, u"本地mac地址没有加入iptables表中,无法进行下一步"
    print network_control.rand_network(self)
    return network_control.rand_network(self)
Beispiel #2
0
def redirest_network(self):
    result1 = network_control.ssh_wifidog()
    assert result1, u"wifidog进程没起来,无法进行下一步"
    result2 = network_control.rand_redirect(self)
    assert result2, u"网页认证不成功,无法进行下一步"
    result3 = network_control.rand_network(self)
    assert result3, u"认证后网页访问失败,无法进行下一步"
    data = privoxy_control.get_js(self)
    return data