Example #1
0
 public VInject(VConsole con, VRegEx rx, VMitm mitm, VDependencyWatcher dw, Form1 ctx)
 {
     console = con;
     reg     = rx;
     dw.AddCondition(() => mitm.CheckServiceState(VMitm.InjectServices.AutoInjection) && autoPayload == "", ctx.CreateLog("Auto injection is enabled, but no payload is set", VLogger.LogLevel.warning));
     dw.AddCondition(() => mitm.CheckServiceState(VMitm.InjectServices.MatchInjection) && payloadReplace.Count == 0, ctx.CreateLog("Match Injection is enabled, but no payload is set", VLogger.LogLevel.warning));
     dw.AddCondition(() => mitm.CheckServiceState(VMitm.InjectServices.MediaInjection) && mediaReplace.Count == 0, ctx.CreateLog("Media Injection is enabled, but no file is set", VLogger.LogLevel.warning));
     dw.AddCondition(() => !mitm.IsAllOfflineI() && !mitm.started, ctx.CreateLog("One or more injection service is enabled, but mitm service is not running!", VLogger.LogLevel.warning));
     dw.AddCondition(() => mitm.CheckServiceState(VMitm.InjectServices.MatchInjection) && mitm.CheckServiceState(VMitm.InjectServices.AutoInjection), ctx.CreateLog("Both Match and Auto injection is enabled, this may produce unexpected results!", VLogger.LogLevel.warning));
 }
Example #2
0
        /// <summary>
        /// Create All MITM related injects (you can configure them in mitm/inject_manager)
        /// </summary>

        public void CreateInjects()
        {
            if (vi != null)
            {
                VRegEx r = vi.Rxmanager;
                r.Add("mitm_inject_match_and");
                r.Add("mitm_inject_macth_or");
                vf.CreateFilter("mitm_inject_match_and");
                vf.CreateFilter("mitm_inject_match_or");
            }
        }
Example #3
0
 public void SetManager(VRegEx regex)
 {
     Rxmanager = regex;
 }