Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2 3 ... 5

Author Topic: Extracting PPPoE credentials from Juniper SRX300  (Read 16137 times)

psychopomp1

  • Reg Member
  • ***
  • Posts: 311
Extracting PPPoE credentials from Juniper SRX300
« on: June 10, 2017, 02:51:03 PM »

Probably a long shot but thought I'd ask anway. My FTTP authentication (PPPoE) credentials are stored in the ISP provided Juniper SRX300, i MUST use this to connect to the ONT. Unfortunately, being a managed install, my ISP (Fluidone) won't hand out the PPPoE details so its up to me to extract them and enter them into my Netgear R9000 which would hopefully allow me to connect the Netgear directly to the Openreach ONT, ie bypassing the Juniper behemoth. Would anyone have any idea on where to start? I believe it may be possible to brute force the PPPoE credentials using Hashcat but that's as far as I've got....

Cheers
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #1 on: June 10, 2017, 05:20:02 PM »

That's interesting, for it was earlier today that I read a comprehensive post in the TBB Forum from a member who has finally got an active FTTPoD service from Fluidone. A Juniper SRX300 was provided, which had to be connected between the Openreach ONT (a Huawei HG8240) and the EU's router.  ;)

After reading the above mentioned post, I have "put by" some Juniper documentation for study and even downloaded the images that were provided to show the installation . . . To this techno-kitteh's eyes, the SRX300 is more visually appealing that the EU's router!  :D

How to tackle the problem? As I understand it, with the required credentials stored in the SRX300, you will need to monitor (sniff) the Ethernet link between the HG8240 and the SRX300 to catch the CHAP challenge sent (to the SRX300) and its response. Usage of Wireshark will be appropriate. The only uncertainty is how to successfully tap the Ethernet link.  :-\
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #2 on: June 10, 2017, 10:49:08 PM »

Having now read through the Juniper documentation (the SRX300 How To Set Up Guide and the SRX300 Services Gateway Hardware Guide) I have to ask a few questions --
  • Have you tried to gain access to the SRX300 via the serial console port?
  • Have you tried loading the rescue configuration (a straightened out paper-clip in the hole to operate the "Reset Config" button)?
  • How locked down, if at all, is the device?
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

psychopomp1

  • Reg Member
  • ***
  • Posts: 311
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #3 on: June 10, 2017, 11:12:46 PM »

That's interesting, for it was earlier today that I read a comprehensive post in the TBB Forum from a member who has finally got an active FTTPoD service from Fluidone. A Juniper SRX300 was provided, which had to be connected between the Openreach ONT (a Huawei HG8240) and the EU's router.  ;)
Yep, that's me on the TBB forum  ;D

  • Have you tried to gain access to the SRX300 via the serial console port?
  • Have you tried loading the rescue configuration (a straightened out paper-clip in the hole to operate the "Reset Config" button)?
  • How locked down, if at all, is the device?

I haven't tried any of the above...TBH the unit looks rather intimidating  :-[ I'm worried that if I press the reset button (if it works that is!) it might reset/wipe everything and leave me without web access and the only way might be to send the unit back to Fluidone to re-configure...which I imagine they won't be too happy with. I think its totally locked down, even pressing the on/off switch does nothing, switching it on at the mains is the only way to power it up.
Logged

tickmike

  • Kitizen
  • ****
  • Posts: 3640
  • Yes Another Penguin !. :)
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #4 on: June 11, 2017, 12:09:58 AM »


 The only uncertainty is how to successfully tap the Ethernet link.
Could a network switch be placed in it and connect a computer with Wireshark on it to the read 'chap'
Logged
I have a set of 6 fixed IP's From  Eclipse  isp.BT ADSL2(G992.3) line>HG612 as a Modem, Bridge, WAN Not Bound to LAN1 or 2 + Also have FTTP (G.984) No One isp Fixed IP >Dual WAN pfSense (Hardware Firewall and routing).> Two WAN's, Ethernet LAN, DMZ LAN, Zyxel GS1100-24 Switch.

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #5 on: June 11, 2017, 12:31:11 AM »

Yep, that's me on the TBB forum  ;D

I guessed it had to be.  :D  There was far too much of a similarity to be just a coincidence . . .

Thank you for making those images available. I now know the the specification of the EZ Bend cable and can look up the ITC-T Recommendations for all the details (G.657), minimum bend radius, etc.

"OFS EZ BEND G.657.B3 OPTICAL CABLE #C- M04.8C-"

Quote
I haven't tried any of the above...TBH the unit looks rather intimidating  :-[ I'm worried that if I press the reset button (if it works that is!) it might reset/wipe everything and leave me without web access and the only way might be to send the unit back to Fluidone to re-configure...which I imagine they won't be too happy with. I think its totally locked down, even pressing the on/off switch does nothing, switching it on at the mains is the only way to power it up.

Acknowledged and understood.

So we need to consider a means to tap the Ethernet link. The simplest method would be to insert a computer with two Gigabit NICs into the Ethernet link.

Huawei HG8240 <-------> Computer <-------> Juniper SRX300 <-------> Netgear R9000

Where the computer runs a Linux kernel based OS and has two Gbit NICs, Eth0 and Eth1. Software-wise (iptables) Eth0 just passes data to/from Eth1 and vice-versa. A logical bond is created from those two physical interfaces and it is the logical bond that is sniffed with Wireshark.
  • The HG8240 is in a powered up state.
  • The computer (the "man-in-the-middle") is booted up and Wireshark is started with the bond as the target.
  • The SRX300 is powered on and allowed to "do its thing".
From the Wireshark capture I would expect you to see three lines of interest --
  • A CHAP Challenge from Fluidone's server.
  • A CHAP Response from the SRX300.
  • A CHAP Success message from Fluidone's server.
In the SRX300's response, I would expect you to see the "login" part of the credentials in plain text. The "password" part of the credentials should discovered by submitting the relevant portions of the challenge and response to Hashcat.

Hmm . . .  :hmm:
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

niemand

  • Kitizen
  • ****
  • Posts: 1836
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #6 on: June 11, 2017, 12:38:16 AM »

Or just use a cheap switch that allows port mirroring and capture that way.

Cheapo TP-Link Easy Smart switches can do this. I presume any managed switch will suffice.

 
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #7 on: June 11, 2017, 12:44:46 AM »

Could a network switch be placed in it and connect a computer with Wireshark on it to the read 'chap'

The problem when using a network switch (or even an early generation of dumb network hub) is that the computer's own Ethernet NIC will also "vocalise" in response to the data flowing between the two devices.

Here is the "Enigma Curry" Ethernet Tap which is good for 10/100 Mbps but not for 1000 Mbps. ("Enigma Curry" is an anagram of "Ryan McGuire".)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #8 on: June 11, 2017, 12:46:58 AM »

Or just use a cheap switch that allows port mirroring and capture that way.

Cheapo TP-Link Easy Smart switches can do this. I presume any managed switch will suffice.

Interesting. Do you have links (URLs) for any suitable devices, please?
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

d2d4j

  • Kitizen
  • ****
  • Posts: 1103
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #9 on: June 11, 2017, 10:48:16 AM »

Hi burakkucat

If it helps you, I'm sure we have some old ho procurve 2524 or 2512 (2500 series L2 full management switches - the 24 or 12 signify the number of ports available)

You can set port mirroring on these, either from cli or web based - depending upon how you find it easier

A small point to note on these are storm protection is cli only option for turning on/off (incase you want to have multiple incoming connections or setting failover/bonding)

If you would like one sending to you, please pm me but I cannot guarantee to have time to factory default switch. However, it is easy to do with clear/reset buttons or there is a 232/db9 pin management port, and default from telnet on startup

Lastly, 2524 are only 10/100 unless you buy/have the plugin 1000 or fibre

Very last, these are covered on lifetime warranty and hp are one of the few companies who dispose/recovery of old equipment to make new components where possible

Many thanks

John
Logged

psychopomp1

  • Reg Member
  • ***
  • Posts: 311
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #10 on: June 11, 2017, 02:08:23 PM »

Thanks guys, perhaps I may be able to throw the SRX300 in the rubbish skip after all  :lol:

So I take it the first step is to get a suitable 'sniffing' port switch which i need to hook up to my 1gbps ethernet port on my pc? I guess the switch will need to have 1 gig ports as my connection is greater than 100 meg?

Where the computer runs a Linux kernel based OS and has two Gbit NICs, Eth0 and Eth1. Software-wise (iptables) Eth0 just passes data to/from Eth1 and vice-versa. A logical bond is

Will i not be able to do this within Windows 7 (64 bit) environment as that is what my Thinkpad notebook uses?
Logged

underzone

  • Reg Member
  • ***
  • Posts: 442
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #11 on: June 11, 2017, 03:03:06 PM »

You don't want to use a switch, you just need an old hub and wireshark :cool:

https://en.wikipedia.org/wiki/Ethernet_hub


« Last Edit: June 11, 2017, 03:06:05 PM by underzone »
Logged

psychopomp1

  • Reg Member
  • ***
  • Posts: 311
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #12 on: June 11, 2017, 03:32:24 PM »

You don't want to use a switch, you just need an old hub and wireshark :cool:

https://en.wikipedia.org/wiki/Ethernet_hub

Thanks, so i would need to buy something like this

https://www.amazon.co.uk/TP-LINK-TL-SG105-Steel-Gigabit-Switch/dp/B00A128S24

 hook everything up as burrakucat described, run wireshark on my pc and bobs my uncle?
Logged

niemand

  • Kitizen
  • ****
  • Posts: 1836
Re: Extracting PPPoE credentials from Juniper SRX300
« Reply #14 on: June 11, 2017, 03:49:11 PM »

Didn't even realise you could still get those. Forgot about eBay!

Yep that's definitely the way to go.
Logged
Pages: [1] 2 3 ... 5