Questions tagged [remote-file-inclusion]

26 questions
1
vote
1 answer

reading a file from remote host using perl

I am trying to read a file(temp.txt) placed under /root directory on remote host(ubuntu) in same LAN from ubuntu machine.(ssh and ftp are open) The perl script is able to connect and a OpenSSH dialog box appears asking for password and then program…
maanoor99
  • 131
  • 2
  • 4
  • 15
0
votes
1 answer

Cross-Site Scripting vulnerability in C

Hope your doing well. Can somebody help me to resolve this. Cross-Site Scripting in C. This is occurring in my C file. Here am proving the URL like, how they are getting the…
Anitha
  • 21
  • 1
  • 5
0
votes
1 answer

python http.server module not working over port 80 in Remote File Inclusion exercise

I am doing a pentesting challenge and I am working on one machine that requires gaining access through a Remote File Inclusion vulnerability. In the past I was able to get a webshell by including a malicious file on my machine. I did so using the…
0
votes
1 answer

chef template/statements with remote_file

I'm trying to create a chef script which downloads a file & pass the content of the downloaded file to template variables using IO.read(downloaded File), which internally download multiple files. Downloaded file has a specific format such as…
Chandan C
  • 138
  • 1
  • 11
0
votes
3 answers

Check referrer?

I am having a problem. I have this code: $theUrl = $_GET["url"]; include("$theUrl.php"); This gets the url, for example: http://mywebsite.com/index.php?url=test But what if someone puts in:…
Moussa
  • 1
0
votes
2 answers

IBM AppScan Security PathTraversal issue in File.Copy method in VB.Net

I ran IBM AppScan tool on a VB.Net source.I am getting one security issue in File.Copy method under Path Traversal category. Issue Detail - Vulnerability Type - PathTraversal This API accepts a directory, a filename, or both. If user supplied data…
0
votes
0 answers

Celery remote worker accessing file

I have a function which should take an executable file as argument, execute it and return the result. This function should be run asynchronously so I'm using celery. I want to use multiple computers as workers so each worker should be able to access…
Matrix
  • 98
  • 1
  • 11
0
votes
1 answer

including remote files in c#

I have c# file with all contents contained in a namespace LinkedList saved with the name linkedlist.cs . This file doesn't have a main() method. I want to include the content of that file or that namespace in another file. How can I do that ?
Manish Singh
  • 360
  • 1
  • 6
  • 18
0
votes
3 answers

Opening remote file using PHP

I have a PHP page where i want to open a file on a remote machine and read its contents. I have to specify the remote machine's IP address. How can this be done in PHP ?
Cygnus
  • 3,222
  • 9
  • 35
  • 65
-1
votes
1 answer

RFI not working properly, how to open a shell?

When i am trying to backdoor a web page given to me to find a specific file, upon requesting a shell i am given the following warnings on the page, and no other information is given. Should a shell pop up? I am kind of new to RFI and this is my…
ismaeel ali
  • 43
  • 1
  • 7
-1
votes
1 answer

BASH syntax error nc -vvv 192.168.190.130 80 GET / bash: syntax error near unexpected token `('

This is request I am generating for practicing LFI. nc -vvv 192.168.190.130 80 GET / This is the error I am getting: bash: syntax error near unexpected token `(' Current using UBUNTU 18.04.
1
2