Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how would you build program to detect if your logged into application?

 
steve labar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm looking to build application that does scanning. I'd like it to recognize whether or not it is logged in. just looking for ideas how best to do this. I'm open to all ideas / algoithms to use.i'm thinking a regex match on page difference when logged in vs not.. But there is not much literature on this what you all think?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you left out too many details. What does "scanning" mean - scanning what? Also, logged into what? Logged in how? What do regexps have to do with it, and what does "page difference" mean in this context?
 
steve labar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that. I would be testing security stuff. So the application would need to know if it is logged into a given application. So, lets say for example it was scanning this site . If i was able to get to "My Profile" and not logged in it would know there was a security issue. It needs to recognized if it is authenticated or non authenticated.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't the application know if it did log in to some web site? It would have had to supply a password; it it didn't then it's not logged in. I think I'm missing something...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic