busybox – docker vault busy box container ps does not have -p option get uptime of process

I’m trying to get an uptime of a process in a docker container in seconds that uses busybox.

when i run the command ps -p 6 it says ps: unrecognized option: p

whats going on here? is there a way for me to get an uptime of a pid in busy box a different way, maybe download a software in my dockerfile?

sql injection – Hack the Box (Vaccine) – Without using SQL Map

I am training for OSCP and starting by attacking some machines on the Hack the Box (HTB) platform https://app.hackthebox.eu/

I am trying to attack a box called Vaccine, which is vulnerable to SQL injection.

I have verified the box is running Postgres, by using the following command on the web page search box

'; SELECT version() ; select * from cars where name like '

The walk through describes running the SQL Map command” –os-shell command”

As I am not allowed to run SQL Map suring OSCP, how can I achieve the same without using SQL Map?

Any help greatly appreciated.

custom post types – how to only allow one selection to be made in meta box

Okay so I have one metabox for my CPT and it has multiple dropdowns in it. I need help in only allowing one selection to be made.

if ( get_post_meta( $post->ID, 'item_type', true ) == 'page' ) {
        unset( $media_file );
    } elseif ( get_post_meta( $post->ID, 'item_type', true ) == 'media' ) {
        unset( $hidden_page );
    }

This is the code that should do this but when I check in my DB it’s not. Here my logic that I need in plain english…. “If item type equals page then get rid of media file selection and if item type equals media then get rid of page selection.” Any help offered will be greatly appreciated. Thank you!

Override Modal Dialog Box CSS in SharePoint

I would like to override Modal Dialog Box CSS in SharePoint 2013.I using Below CSS in the Content Editor Web part of the Particular list Newform.aspx.But Its not overriding existing CSS.

iframe .ms-dlgContent {
    top:1px !important;
}

​​​​​​​​​​​​​​​​​​​​​​​​​​

Any Help Would be greatly appreciated…

graphics – Adding an inset box on a graph

Question:

I would like to have a second inset box on the graph below, as a legend for the graph but it’s not showing. I tried to do make it work by editting an old example I had from another question, but it’s still just printing the graph (correctly) but without the inset box (which should go underneath the box that can be seen)

Code:

Show(Plot(glm(t), {t, 0, 900}, PlotRange -> All, 
  PlotTheme -> "Detailed", PlotStyle -> Red, Axes -> False, 
  Frame -> {{True, False}, {True, False}}, 
  FrameLabel -> {"Time /s", 
    "Counts Recorded in the Previous 15 seconds"}, 
  ImageSize -> Large), 
 Plot(A*Exp(-0.00462480948*x), {x, 0, 900}, PlotRange -> All, 
  PlotTheme -> "Detailed", PlotStyle -> Blue, Axes -> False, 
  ImageSize -> Large), ListPlot(dataHist5), 
 Graphics({Inset(
    Framed(Column({Style("Run 0", Bold), 
       Row({"Data Points = ", Length(dataHist5), "/50"}), 
       Row({Subscript(t, Style("1/2", FontSize -> 10)), " = ", 
         PlusMinus(NumberForm(halfLife, 4), 
          NumberForm(sehalfLife, 3))}), 
       Row({"A = " PlusMinus(Round(A), Round((Sigma)A))}),
       Row({"(Lambda) = " PlusMinus(NumberForm(k, 3), 
           NumberForm((Sigma)k, 2))}), 
       Row({Superscript(D, 2), "= ", NumberForm(edp, 4)}), 
       Row({"Reduced " Superscript(D, 2), "= ", 
         NumberForm(redp, 3)})}), Background -> White, 
     RoundingRadius -> 5), {Right, Top}, Scaled({1.1, 1.2})),
   Inset(Framed(
     Column({LineLegend({Blue}, {Style(
          TraditionalForm@"Reference")})}), 
     Row({LineLegend({Red}, {Style(
          TraditionalForm@"Experimental")})}), Background -> White, 
     RoundingRadius -> 5), {Right, Bottom}, Scaled({1.1, 1.2}))}), 
 PlotLabel -> 
  Style("Decay Curve of Phosphorus-30 by (Beta)+ Emission", Bold))

Result:

enter image description here

Thoughts:

I think the problem might be to do with where my brackets are, but I can’t see where or what bracket might be wrong or missing.

LowEndBoxTV: WHMCS Alternatives – Low End Box


If you’re a WHMCS owned license user, we feel your pain!

First WHMCS stopped selling owned licenses, then they stopped allowing transfers, then the cut off support altogether while raising monthly prices. If you’re looking for an alternative, watch this video!

Related LowEndBox posts:

WHMCS Kneecaps Owned Licenses: No More Support

WHMCS Alternatives

 

raindog308

I’m Andrew, techno polymath and long-time LowEndTalk community Moderator. My technical interests include all things Unix, perl, python, shell scripting, and relational database systems. I enjoy writing technical articles here on LowEndBox to help people get more out of their VPSes.

LowEndBoxTV: CentOS…What Happened?!? – Low End Box

CentOS, RIP…long live CentOS Stream?!? What hath IBM wrought? In this video, we break down the CentOS drama.

As you can tell from the thumbnail…it isn’t pretty!  You could answer the question in one word: IBM.  But the roots of what happened pre-date IBM’s involvement.

We also mention Alma Linux and Rocky Linux.

Related LowEndBox posts:


As we launch our channel, we would appreciate your likes, shares, and above all subscriptions.  We’re also interested to know what kind of content you’d like to see – please comment below!

raindog308

I’m Andrew, techno polymath and long-time LowEndTalk community Moderator. My technical interests include all things Unix, perl, python, shell scripting, and relational database systems. I enjoy writing technical articles here on LowEndBox to help people get more out of their VPSes.

I will do professional Packaging Design for your brand for $35

I will do professional Packaging Design for your brand

Today, customers make a split decision based on what they see. That’s why it’s important to make sure that your visual presentation makes you appear unique, credible, trustworthy and authoritative. Your design only have one chance to make a first impression so if you want to make an impact, it’s vital that your product design is up to par.

I offer professional and innovative product packaging designs for individuals and brands dealing with Health & Beauty, Cosmetics & Luxury, Jewelry and Accessories etc

What you will get:

• Minimal yet professional and sleek design

• 100% premium and professional service

• JPG/PDF for print & AI editable source files

• Free for commercial use

• Start to finish support for every client

Please don’t hesitate to contact me if you have any question regarding anything to get started.

.

Two adapters in virtual box

I’m trying to set up a router on virtual box. The set up I am using is a windows server 16 I set adapter 1 to bridge and adapter 2 for internal. I was able to get another vm on a separate host to ping it but once I try and ping out from the internet network I am building it drops. Please help I’m new to this so any advice would be awesome