How to catch a code from a website wich needed log & pass

Just starting out? Need help? Post your questions and find answers here.
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

How to catch a code from a website wich needed log & pass

Post by ar-s »

Hi,
I'm making a little stuff to extact links from website during surfin with the defaut navigator (firefox for me), so my app catch on the fly the adress and if i press a button,
the source of the page is catch and some links are extract.
I'm using the procedure below to catch the source.

Code: Select all

;- RECUPERATION DE LA SOURCE D'UNE PAGE WEB ----------------------------
ProcedureDLL.s Url2Text2(Url.s, OpenType.b,ProxyAndPort.s)
  ;/ Author : Pille
  isLoop.b=1
  INET_RELOAD.l = $80000000
  hInet.l=0
  hURL.l=0
  Bytes.l=0
  Buffer.s= Space (2048 )
  RES.s= ""
  hInet = InternetOpen_ ( "" , OpenType, ProxyAndPort, "" , 0)
  hURL = InternetOpenUrl_ (hInet, Url, #Null , 0, INET_RELOAD, 0)
  Repeat
    InternetReadFile_ (hURL,@Buffer, Len (Buffer), @Bytes)
    If Bytes = 0
      isLoop=0
    Else
      RES = RES + Left (Buffer, Bytes)
    EndIf
  Until isLoop=0
  InternetCloseHandle_ (hURL)
  InternetCloseHandle_ (hInet)
  ProcedureReturn RES
EndProcedure

ProcedureDLL.s Url2Text(Url.s)
  ProcedureReturn Url2Text2(Url,1, "" )
EndProcedure 
until here everything rules.

Now, i need to do the same thing with a website (or forum) wich needed a login/password to read the content.
So, even if i'm logged, my program can't catch the source code of the page.
How could i solved that problem ?

Thanks

n.b : i don't want using webgadget !
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: How to catch a code from a website wich needed log & pas

Post by Rook Zimbabwe »

my basic question is: Since YOU are the one logged in WHY would you need to do this?

Once you log in put mouse cursor on page and right click and select VIEW SOURCE (or something similar) and you will have a notepad window opened with the code that can be saved where you want!

and

Why does your avatar have a PIRATE SKULL for a head?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: How to catch a code from a website wich needed log & pas

Post by Nituvious »

Rook Zimbabwe wrote:my basic question is: Since YOU are the one logged in WHY would you need to do this?

Once you log in put mouse cursor on page and right click and select VIEW SOURCE (or something similar) and you will have a notepad window opened with the code that can be saved where you want!

and

Why does your avatar have a PIRATE SKULL for a head?
It looks like a character from South Park, or one of the many character creators.

He may just have a thirst for knowledge :mrgreen:
▓▓▓▓▓▒▒▒▒▒░░░░░
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: How to catch a code from a website wich needed log & pas

Post by ar-s »

Why does your avatar have a PIRATE SKULL for a head?
I put a PIRATE SKULL because it's less ridicul thant a potato or a banana...
So you are right, i could copy/past source code with notepad and extract each link i need... But i'm making a link sniffer, i'ts faster and it's a good contest.
He may just have a thirst for knowledge
True


So, thank you for your useless answers.
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
User avatar
PureLeo
Enthusiast
Enthusiast
Posts: 221
Joined: Fri Jan 29, 2010 1:05 pm
Location: Brazil

Re: How to catch a code from a website wich needed log & pas

Post by PureLeo »

(sorry, i don't have an answer)
But does it matters if the guy has a skull something for avatar???
And I bet almost everyone knows how to right click on a web page to get its source, so It wasn't obviously what he wanted.

Sorry guys, but this sounds like "oh, he has a skull in his avatar, he might be making a virus"

There are a lot of suppositions like that in the forums, and this is kinda sad.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Re: How to catch a code from a website wich needed log & pas

Post by Henrik »

PureLeo wrote:(sorry, i don't have an answer)
But does it matters if the guy has a skull something for avatar???
And I bet almost everyone knows how to right click on a web page to get its source, so It wasn't obviously what he wanted.

Sorry guys, but this sounds like "oh, he has a skull in his avatar, he might be making a virus"

There are a lot of suppositions like that in the forums, and this is kinda sad.
+1

Henrik
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: How to catch a code from a website wich needed log & pas

Post by Nituvious »

I never tried to insinuate that he was making a virus. It never crossed my mind. I was simply referring to the avatar looking like something from South Park. :?
▓▓▓▓▓▒▒▒▒▒░░░░░
Post Reply