Jump to content
UBot Underground

Romeo

Fellow UBotter
  • Content Count

    50
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Romeo

  1. Hello There Fellow Ubotters,

    I have installed a plugin "execute python" and try to run simple script with third party module which is working fine on my computer but on another computers I am receiving no/blank results, Please help me if anyone knows about python with ubot studio

    set(#match_percent,$plugin function("ExecutePython.dll", "Execute From Code", "from somemodule import process
    from somemodule import module

    print(fuzz.ratio(\"main query\", \"choice\")) ", "c:\\Python33\\Python.exe"),"Global")
    alert(#match_percentage)

    Thanks in Advance


  2. *****Zip*****
    run python("import shutil
    import os
    os.chdir(\'D:/\')
    shutil.make_archive(\'test\',
    \'zip\',
    \'folder-or-file-you-want-to-zip\')")

    *****UNZIP*****
    run python("import zipfile
    with zipfile.ZipFile(\"D:/test.zip\",\"r\") as zip_ref:
    zip_ref.extractall(\"D:/test\")")

     

    • Like 2
  3. Hello Fellow Ubotters, I was figuring out this thing and I got the solution so wanted to share with you guys hope this helps someone I shared this because sharing is caring :D ;)

    To run any exe with admin rights you have to create .bat file with the below code and then you can simply use shell batch hidden command to trigger your bat file with the code cd C:\your path to bat file (Your bat File Must Be In C Directory)
    start yourbat.bat


    create bat file with below code:
    @echo off
    if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
    cd C:\your path to file (Your File Must Be In C Directory)
    start yourfile.exe

     

    NOTE: IT WILL GOING TO PROMPT USER TO RUN AS ADMIN
    • Like 2
  4. Hello Kill3rbko,

    To run any exe with admin rights you have to create .bat file with the below code and then you can simply use shell batch hidden command to trigger your bat file with the code:cd C:\your path to bat file (Your bat File Must Be In C Directory)

    start yourbat.bat
     
     
    create bat file with below code:
    @echo off
    if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
    cd C:\your path to file (Your File Must Be In C Directory)
    start yourfile.exe
     
    NOTE: IT WILL GOING TO PROMPT USER TO RUN AS ADMIN
    • Like 1
  5. Hello There Ubotters,

     

    Can someone please help me with Run as admin thing, I want my bot to open another app but as admin, if anyone know then please do let me know the way to do it.

     

    I already tried shell batch hidden command which is cd c:\program files\path to another app then start app.exe, But this command did not open the app as admin.

     

     

    Thanks in advance

×
×
  • Create New...