pry0cc / axiom

The dynamic infrastructure framework for everybody! Distribute the workload of many different scanning tools with ease, including nmap, ffuf, masscan, nuclei, meg and many more!
MIT License
4k stars 622 forks source link

Not able to install on Azure - Ubuntu VM #643

Closed satishshekher99 closed 1 year ago

satishshekher99 commented 1 year ago

A web browser has been opened at https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with az login --use-device-code.

No browser opens. Also where is the code that I need to enter?

Screenshot 2022-11-09 183312

pdelteil commented 1 year ago

You could try loading the url (https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize) using firefox (manually or clicking the link). Once you open the link you'll get the code.

0xtavian commented 1 year ago

Pretty sure azure is broken atm :/ @satishshekher99

six2dez commented 1 year ago

Hi! Any update on axiom's Azure setup/usage? :)

0xtavian commented 1 year ago

Azure is now fixed thanks to @six2dez

molitona commented 1 year ago

@six2dez @0xtavian have the same problem. how to fix?

molitona commented 1 year ago

stuck there, even i ssh again to my vps and authenticate using --use-device-code (i have no desktop environment like gnome on my vps where want azure with axiom)

Screenshot from 2023-04-04 10-57-36

molitona commented 1 year ago

it's ubuntu 20.04 LTS vps

molitona commented 1 year ago

i authenticated in other window using --use-device-code but script always stuck there

0xtavian commented 1 year ago

@molitona you are on the latest code? I’ll test later tonight. Ty for bringing this up.

molitona commented 1 year ago

yep. last code. Apr 4, 2023, 17:07 by @.***:

@molitona https://github.com/molitona> you are on the latest code? I’ll test later tonight. Ty for bringing this up.

— Reply to this email directly, > view it on GitHub https://github.com/pry0cc/axiom/issues/643#issuecomment-1496240069> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AIPC4MKR4X4S7J5BQZDJ6V3W7RBKNANCNFSM6AAAAAAR3NDLYI> . You are receiving this because you were mentioned.> Message ID: > <pry0cc/axiom/issues/643/1496240069> @> github> .> com>

molitona commented 1 year ago

@0xtavian you tried ?

0xtavian commented 1 year ago

@molitona OK i see the issue. Oddly we are always expecting azure to be installed on a machine with a web browser.

Try changing this line https://github.com/pry0cc/axiom/blob/master/interact/account-helpers/azure.sh#L89 from

default_email=$(az login | jq -r  '.[].user.name')

to

default_email=$(az login --use-device-code | jq -r  '.[].user.name')

I'll try to add this patch later tonight after a few more tests

molitona commented 1 year ago

It works, thanks.

One question. I choose Standard B1s in vm size initially, but the base vm got Standard_DS2_v2 as size why ?

molitona commented 1 year ago

@0xtavian you know how max of virtual machines can be spawn with azure trial ?