pentoo / pentoo-overlay

Gentoo overlay for security tools as well as the heart of the Pentoo Livecd
317 stars 90 forks source link

PEASS tool. Priv esc. Automated. #609

Closed necrose99 closed 4 years ago

necrose99 commented 4 years ago

https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite

Simple bash .net batch tool.. Linpeass is bash script only. Winpeass .net taskschead. Exe , batch script..

《Sln to cmake python for mono crossing for windows. Separate script https://github.com/pavelliavonau/cmakeconverter Ie build drop on windows with metasploit or etc or other post exploit kits.. 》

Helps automatically probe to privilege esc.

2020 Asia Blackhat tool.

blshkv commented 4 years ago

Well, i don't think we need an ebuild for a single shell script. Download and run it on a compromised host to escalate privileges

necrose99 commented 4 years ago

I was hoping to get the sln via python cmake-converter, for windows bit. With mono/ #cshap cross. As well .. Going to have to use cmake converter..

Cmake can also cross bins. Ie embeded windows/arm7/8 besides typically, win32/64.

Else use upstream prebuilt bins/sh. To use with post exploitation environments.

Just cobbled laptop back , i had hybrid with Sabayon, but tool chains are dragging ass backwards behind pure pentoo. One point entropy was good at filling in most prebuilt bins to get most running, but in the year ++ they're lagging way back. However insted of systemd/upgrade of some bins or rappid deployment, it now self-destructs Asus ROG laptops... install. Lobotomized install.. killed networking stack fully corrupted..

Now if i can get iwifi .... networkmanger to run right...... wont have to keep slaving cord.. Having to bake in or remove vpn add to conman vs nm wlan0 tries to load but sticks.

Other than thier overlay/freshbuilds of a few tools and new mudler's luet for go.. entropy/emerge in docker. Might be of use in cl pentoo/docker, binbuild scripts ie emerge pentoo arm7hf > home$./yadA/pentoo-arm7hf/ , or docker in building pkgs .. not much else.

Let me try n cobble cmake to life. N hitup upstream..

The covid19 unemployment, being trapped in since dec.. been getting at my head a bit.. Boing lost 350 planes on order over covid19.. As a consultant on Contract, we got pinched.

University agged stepson, spouce etc tiny apt.. Before they trapped her in too, i had bit more workspaces..

Been trying to chew on CEH10/ccsp/pentest+ , since unemployment finally got paidout.. Building pentoo on aarch64 rpi4../rockpro64/pinebookpro cortex-a53-a?..

8 gigabyte units just hit. For reconnaissance, etc of use..

Portable rpi4 with lcd case Vilros, and aluminum case. Rockpro64, laptop rpi3 distcc/icecream github binhost repo should be quite sufficient in addition testing.

On Tue, Jun 2, 2020, 00:53 Anton Bolshakov notifications@github.com wrote:

Closed #609 https://github.com/pentoo/pentoo-overlay/issues/609.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pentoo/pentoo-overlay/issues/609#event-3395973559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASJAT6GOYP5J56TMK7PM2LRUSHU7ANCNFSM4MOHCXTA .

blshkv commented 4 years ago

well, I dont know about the converter. You might need a windows specific includes and libraries. Try app-editors/visual-studio-code? Microsoft is doing a good job releasing everything open source. You can compile .NET natively (without mono). Just connect dotnet overlay and enjoy it.

necrose99 commented 4 years ago

https://github.com/pavelliavonau/cmakeconverter

SLN to Cmake so either option is doable Linux Cross to windows etc .. i have vs on my windows install MS pretty much doing on their Azure stacks of late anyway. I'll add to upstream https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/issues/43

https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/issues/39

other logic was using embedded as jump boxes etc , and or recon augmentation . seems dead simple I have presented the cmake upstream from sln to cmake via python toy..

[image: image.jpeg]

Michael R. Lawrence , A+ Network+ MCP sec+ , Associate CISSP

INFORMATION SECURITY ENGINEER /WINDOWS/LINUX INFRASTRUCTURE SPECIALIST m: 3179092009 <+1-317-909-2009> a: 1901 Oak Creek Ln,Apt G, Bedford Texas, 76022 (Dallas/Fort Worth USA) w: www.youracclaim.com/users/michael-lawrence.914a25b3/badges https://www.youracclaim.com/users/michael-lawrence.914a25b3/badges e: mike@michaellawrenceit.com mike@michaellawrenceit.com https://www.linkedin.com/in/itsecmichaelrlawrence [image: image.png]

Michael-R-Lawrence-IT-Security-consultant.docx

[image: image.png]

Open link on Dropbox https://www.dropbox.com/s/6liiqa569oagxw2/Michael-R-Lawrence-IT-Security-consultant.docx?dl=0

On Tue, Jun 2, 2020 at 12:07 PM Anton Bolshakov notifications@github.com wrote:

well, I dont know about the converter. You might need a windows specific includes and libraries. Try app-editors/visual-studio-code? Microsoft is doing a good job releasing everything open source. You can compile .NET natively (without mono). Just connect dotnet overlay and enjoy it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pentoo/pentoo-overlay/issues/609#issuecomment-637685822, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASJAT4VK34P3UNS5RSANJLRUUWW3ANCNFSM4MOHCXTA .

cmake_minimum_required(VERSION 3.15.0 FATAL_ERROR)

project(winPEAS )

################################################################################

Set target arch type if empty. Visual studio solution generator provides it.

################################################################################ if(NOT CMAKE_VS_PLATFORM_NAME) set(CMAKE_VS_PLATFORM_NAME "x64") endif() message("${CMAKE_VS_PLATFORM_NAME} architecture in use")

if(NOT ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Any CPU" OR "${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64" OR "${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x86")) message(FATAL_ERROR "${CMAKE_VS_PLATFORM_NAME} arch is not supported!") endif()

################################################################################

Global configuration types

################################################################################ set(CMAKE_CONFIGURATION_TYPES "Debug" "Release" CACHE STRING "" FORCE )

################################################################################

Global compiler options

################################################################################ if(MSVC)

remove default flags provided with CMake for MSVC

endif()

################################################################################

Global linker options

################################################################################ if(MSVC)

remove default flags provided with CMake for MSVC

set(CMAKE_EXE_LINKER_FLAGS "")
set(CMAKE_MODULE_LINKER_FLAGS "")
set(CMAKE_SHARED_LINKER_FLAGS "")
set(CMAKE_STATIC_LINKER_FLAGS "")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_STATIC_LINKER_FLAGS_DEBUG "${CMAKE_STATIC_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${CMAKE_STATIC_LINKER_FLAGS}")

endif()

################################################################################

Nuget packages function stub.

################################################################################ function(use_package TARGET PACKAGE VERSION) message(WARNING "No implementation of use_package. Create yours. " "Package \"${PACKAGE}\" with version \"${VERSION}\" " "for target \"${TARGET}\" is ignored!") endfunction()

################################################################################

Common utils

################################################################################ include(CMake/Utils.cmake)

################################################################################

Additional Global Settings(add specific info there)

################################################################################ include(CMake/GlobalSettingsInclude.cmake OPTIONAL)

################################################################################

Use solution folders feature

################################################################################ set_property(GLOBAL PROPERTY USE_FOLDERS ON)

################################################################################

Sub-projects

################################################################################

blshkv commented 4 years ago

here you have it. But you are on your own here ;-)

necrose99 commented 4 years ago

Oh well https://hackernoon.com/low-cost-usb-rubber-ducky-pen-test-tool-for-3-using-digispark-and-duck2spark-5d59afc1910

$3 a digispark.

https://github.com/mame82/duck2spark.

Veil should be enough for win bin long with typically revese shell.

Also cheep foss ed. Of wifi enabled rducky clone for 12 bucks.

With metasploit, ez to punch peas. Or add to deb in the case of linpeas.

Worth a go at the least, for msf use subpkg. For post. But perhaps can be added to msf anyway.

On Tue, Jun 2, 2020, 20:09 Anton Bolshakov notifications@github.com wrote:

here you have it. But you are on your own here ;-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pentoo/pentoo-overlay/issues/609#issuecomment-637894723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASJATYGAP2BSZ57DXBSIKDRUWPDVANCNFSM4MOHCXTA .