how monitor and track ssh activity and commands


Hello

due to some technical reason i have to give root access to developer team, they will install and config some package and software,

how can i track what they execute , which file edited and …. .

** history command is stupid, it can erase easily so need an alternative solution to track and monitor ,

activity.app – Setting Activity goals in Apple Health on iPhone (not Apple Watch)

activity.app – Setting Activity goals in Apple Health on iPhone (not Apple Watch) – Ask Different

java – Como passar um parâmetro de uma Activity b para Activity A

Boa noite, preciso de ajuda para resolver o seguinte problema, estou fazendo um jogo estilo Show do Milhão. Tenho uma Activity principal que é onde ocorre as perguntas e tem os botões que acionam as ajudas. Quando o usuário clica no botão das cartas, abre uma segunda Activity (detalhe, a Activity principal continua aberta), ao gerar a carta eu preciso passar o valor dessa carta para Activity principal.

O problema é que se eu usar o código abaixo:

Obs: Esse código é usado na Activity 2, que seria uma tela temporária que executa um código e volta para Tela Principal

Intent intent = new Intent(this, TelaPrincipal.class);

intent.putExtras("valor", valor); // valor é o atributo que preciso passar para tela principal.

startActivity(intent);

Eu vou está reiniciando a Activity principal, e não posso fazer isso, pois estaria perdendo o andamento do jogo. Então preciso passar esse parâmetro de outra forma.

Detalhe, não tenho muita experiencia estou começando a programar nessa plataforma, então quem puder mandar uma resposta detalhada agradeço.

mobile – How to do ADB and user activity logging on Android?

My question is how to detect ADB connection or unusual user activity in shell on the Android devices.

I have an Android 5.1.1 device with Wi-Fi hotspot enabled and also with opened ADB port, similar to the setup in this challenge, except that I do not have a web server running on it, just ADB is directly open.

Now I want to detect a “hacker” that cracked the WiFi hotspot password and connected via port 5555 into shell, su and run various shell commands.

However, I noticed that the output of logcat, even verbose for all buffers (like ‘adb logcat :V‘) does not allow me to detect anything like that. Neither ADB connection, nor su, nor any shell commands are not visible in the logcat output.

How can I generate / collect logs that will contain the “hacker’s activities”? So far I found auditd for Android, however it is not so easy to install, especially for on older Android versions. Do you know any alternative or any other easier way to monitor shell activities / ADB connection?

linux – not able to see user activity while being in sudo -i

I usually execute “watch -n0.1 w” to see what user is continuously doing.
However, if the user executes “sudo -i”, becomes root and executes something, I cannot see his activity anymore.

Take the following example:
I have 3 sessions open. On first session, I am checking “watch -n1 w” to see what other users are doing. On second session, I’m executing “sudo -i”, then “vim session2.txt”. On third session, I’m executing “vim session3.txt”

Every 1.0s: w

15:31:37 up 63 days,  3:54,  3 users,  load average: 0.05, 0.29, 0.26
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
user1   pts/1    192.168.1.13     14:40    4.00s  0.50s  0.02s sshd: user1 (priv)
user1   pts/2    192.168.1.13     15:21    9:37   0.18s  0.02s sshd: user1 (priv)
user1   pts/3    192.168.1.13     15:24    7:21   0.14s  0.05s vim session3.txt

As you can see I cannot see that on session 2 the user is doing “vim session2.txt” (being in sudo -i), but I can see on session 3 that user is doing “vim session3.txt”

android – Error startActivity(intent) al pasar variables a otra activity

Estoy realizando un proyecto en el que necesito pasar variables de una Activity a otra. El problema viene al utilizar “startActivity(intent)”, en el que recibo una serie errores que no consigo soluiconar.

Los errores son los siguientes:

E/InputEventReceiver: Exception dispatching input event.
E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
E/MessageQueue-JNI: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.listadetareas/com.example.listadetareas.AnadirUsuarios}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2065)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
at android.app.Activity.startActivityForResult(Activity.java:5320)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:574)
at android.app.Activity.startActivityForResult(Activity.java:5278)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
at android.app.Activity.startActivity(Activity.java:5664)
at android.app.Activity.startActivity(Activity.java:5617)
at com.example.listadetareas.MainActivity.onCreate$lambda-0(MainActivity.kt:24)
at com.example.listadetareas.MainActivity.lambda$-ikeh69DLphwKz0FDw0vt44MpAE(Unknown Source:0)
at com.example.listadetareas.-$$Lambda$MainActivity$-ikeh69DLphwKz0FDw0vt44MpAE.onSelectedDayChange(Unknown Source:2)
at android.widget.CalendarViewMaterialDelegate$1.onDaySelected(CalendarViewMaterialDelegate.java:139)
at android.widget.DayPickerView$1.onDaySelected(DayPickerView.java:178)
at android.widget.DayPickerPagerAdapter$1.onDayClick(DayPickerPagerAdapter.java:322)
at android.widget.SimpleMonthView.onDayClicked(SimpleMonthView.java:1027)
at android.widget.SimpleMonthView.onTouchEvent(SimpleMonthView.java:372)
at android.view.View.dispatchTouchEvent(View.java:14309)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:488)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871)
at android.app.Activity.dispatchTouchEvent(Activity.java:4125)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:446)
at android.view.View.dispatchPointerEvent(View.java:14568)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6016)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5819)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5310)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5367)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5333)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5485)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5542)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5314)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5367)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5333)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5314)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8080)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8031)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7992)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8203)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:220)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.listadetareas, PID: 12082
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.listadetareas/com.example.listadetareas.AnadirUsuarios}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2065)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
at android.app.Activity.startActivityForResult(Activity.java:5320)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:574)
at android.app.Activity.startActivityForResult(Activity.java:5278)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:560)
at android.app.Activity.startActivity(Activity.java:5664)
at android.app.Activity.startActivity(Activity.java:5617)
at com.example.listadetareas.MainActivity.onCreate$lambda-0(MainActivity.kt:24)
at com.example.listadetareas.MainActivity.lambda$-ikeh69DLphwKz0FDw0vt44MpAE(Unknown Source:0)
at com.example.listadetareas.-$$Lambda$MainActivity$-ikeh69DLphwKz0FDw0vt44MpAE.onSelectedDayChange(Unknown Source:2)
at android.widget.CalendarViewMaterialDelegate$1.onDaySelected(CalendarViewMaterialDelegate.java:139)
at android.widget.DayPickerView$1.onDaySelected(DayPickerView.java:178)
at android.widget.DayPickerPagerAdapter$1.onDayClick(DayPickerPagerAdapter.java:322)
at android.widget.SimpleMonthView.onDayClicked(SimpleMonthView.java:1027)
at android.widget.SimpleMonthView.onTouchEvent(SimpleMonthView.java:372)
at android.view.View.dispatchTouchEvent(View.java:14309)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:488)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871)
at android.app.Activity.dispatchTouchEvent(Activity.java:4125)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:446)
at android.view.View.dispatchPointerEvent(View.java:14568)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6016)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5819)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5310)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5367)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5333)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5485)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5542)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5314)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5367)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5333)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5341)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5314)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8080)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8031)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7992)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8203)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:220)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/Process: Sending signal. PID: 12082 SIG: 9

El código que tengo es el siguiente:

class MainActivity : AppCompatActivity() {

private val context: Context = this
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main);
    var calendar = findViewById<CalendarView>(R.id.calendar);
    calendar.setOnDateChangeListener { CalendarView, year, month, day ->
        val date = "$year/$month/$day"


        val intent = Intent(context, AnadirUsuarios::class.java)
        intent.putExtra("year", year)
        intent.putExtra("month", month)
        intent.putExtra("day", day)
        startActivity(intent)

    }
}

}

Muchas gracias de antemano por la ayuda.

Find another user’s most recent activity in Slack

Our organization has a lot of Slack channels. Is it possible to figure out where a given user has been publicly posting most recently? For example, I’d like to search for user Bob and get a result that he posted in channel foo 10 minutes ago and in channel bar 20 minutes ago.

clock – Prevent Screen Wake / Activity from Android Timer

I’ve got an android timer running through the base clock in android 11 (oneplus 7t).

EDIT: It appears I’m wrong. This is the oneplus clock, not the base android clock. Why they would bother replacing that is an entirely different question of stupidity.

Every few minutes it lights up the screen to let me know the progress of the timer. This is the most useless and dumb features I’ve seen in a long time. I cannot find any way to turn it off.

To reproduce, go into clock > timer > set one for say thirty minutes. Lock screen. Watch screen illuminate and wake in a process of infinite stupid.

Please help, this is annoying as all hell. I need to have my screen visible in case I receive an important message etc, but I don’t want this thing stealing my attention every few minutes.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Buy Cheap Private Proxies; Best Quality USA Private Proxies