Esempio n. 1
0
def notifications(request):
   if request.is_ajax():
    #Get Creds from DB
      creds = credentials.objects.all()
   
         #Reset Injection Counter
      iptrack.objects.update(injected = "0")
   
    #Check Arpspoof status
      status = statuscheck()
   
      alerts   = notification.objects.all()

      
         
         #Relay Template Variables
      return render_to_response("includes/notificationtable.inc", {
         "credential"   :   creds,
         "status"	      :	 status,
         "alerts"	      :   alerts
      })
   else:            
         #Check Attack status
      status = statuscheck()
   
         #Get Current Settings from DB
      settings = setup.objects.all()
       
               
         #Relay Template Variables
      return render_to_response("notifications.ext", {
         "status"    :   status,
         "setup"     :   settings
      })
Esempio n. 2
0
def notifications(request):
    if request.is_ajax():
        #Get Creds from DB
        creds = credentials.objects.all()

        #Reset Injection Counter
        iptrack.objects.update(injected="0")

        #Check Arpspoof status
        status = statuscheck()

        alerts = notification.objects.all()

        #Relay Template Variables
        return render_to_response("includes/notificationtable.inc", {
            "credential": creds,
            "status": status,
            "alerts": alerts
        })
    else:
        #Check Attack status
        status = statuscheck()

        #Get Current Settings from DB
        settings = setup.objects.all()

        #Relay Template Variables
        return render_to_response("notifications.ext", {
            "status": status,
            "setup": settings
        })
Esempio n. 3
0
def index(request):
   if request.is_ajax():
      #Get Creds from DB
      creds = credentials.objects.all()
      from subterfuge.modules.models import sessions
      sessions = sessions.objects.all()
   
      #Reset Injection Counter
      iptrack.objects.update(injected = "0")
   
      #Check Arpspoof status
      status = statuscheck()
      
      #Get Info
      modules = installed.objects.all()
      alerts  = notification.objects.all()
      vector = vectors.objects.all()
      
         
         #Relay Template Variables
      return render_to_response("includes/credtable.inc", {
         "credential" :   creds,
         "sessions"   :   sessions,
         "status"	    :	  status,
         "modules"    :   modules,
         "vectors"    :   vector,
         "alerts"	    :   alerts
      })
   else:            
         #Check Attack status
      status = statuscheck()
   
   
         #Get Current Settings from DB
      settings = setup.objects.all()
      modules = installed.objects.all()
      vector = vectors.objects.all()
               
         #Relay Template Variables
      return render_to_response("home.ext", {
         "status"    :   status,
         "setup"     :   settings,
         "vectors"   :   vector,
         "modules"   :   modules,
      })
Esempio n. 4
0
def index(request):
    if request.is_ajax():
        #Get Creds from DB
        creds = credentials.objects.all()
        from subterfuge.modules.models import sessions
        sessions = sessions.objects.all()

        #Reset Injection Counter
        iptrack.objects.update(injected="0")

        #Check Arpspoof status
        status = statuscheck()

        #Get Info
        modules = installed.objects.all()
        alerts = notification.objects.all()
        vector = vectors.objects.all()

        #Relay Template Variables
        return render_to_response(
            "includes/credtable.inc", {
                "credential": creds,
                "sessions": sessions,
                "status": status,
                "modules": modules,
                "vectors": vector,
                "alerts": alerts
            })
    else:
        #Check Attack status
        status = statuscheck()

        #Get Current Settings from DB
        settings = setup.objects.all()
        modules = installed.objects.all()
        vector = vectors.objects.all()

        #Relay Template Variables
        return render_to_response(
            "home.ext", {
                "status": status,
                "setup": settings,
                "vectors": vector,
                "modules": modules,
            })