Questions tagged [file-inclusion]
23 questions
4
votes
0 answers
Include specific lines of code from a source file in Docusaurus
I'm currently deciding whether to migrate my developer docs from Sphinx to Docusaurus. The one thing that's holding me back is that Docusaurus (and in fact Markdown in general) doesn't support pulling specific lines of text from other files.
Sphinx…

kenna
- 51
- 1
4
votes
1 answer
QtWebKit dependency missing from qmake generated Makefile
I just started working with Qt (in C++), so I followed a "hello, world" example I found online. I created the program hello.cpp in the directory hello:
#include
int main(int argc, char *argv[]) {
QApplication app (argc, argv);
…

Nick
- 2,821
- 5
- 30
- 35
2
votes
3 answers
Are these uses of hidden fields insecure?
I'm enhancing a legacy system (which I didn't help to build) and would like to find out from other people if some things that I've noticed are legitimate security issues or not.
First of all, the application is secured via a login. However, once a…

Jason L
- 21
- 1
- 5
2
votes
0 answers
Why does PHP include statement treat contents following '?/../' as a path from current directory?
Given a script temp.php in current user directory ~:
#!/usr/bin/php
Using the script above, one can pass a filename as argument and retrieve its text content.…

kayochin
- 431
- 6
- 11
2
votes
3 answers
forward declaration in two headers and two cpp files
I have four C++ files, two headers and two cpp. The headers are properly guarded and in the first I use a forward declaration like this:
//A.h
class B;
class A {
public:
A();
void doSomething(B* b);
};
and some implementation:
void…

w.izzy
- 21
- 4
2
votes
3 answers
Recursive XSLT, part 2
Ok, following on from my question here.
Lets say my pages are now like this:
A.xml:
Page A
Random content for page A
More of page A's content
More of…

Eric
- 95,302
- 53
- 242
- 374
1
vote
0 answers
Preventing Directory Traversal in php get page script
I am trying to implement a secure php get page function afer my website got hacked with LFI, RFI and DTA (I got the whole package LOL).
Browsing the web I found this script which seems to work fine in preventing inclusions of files that I did not…

Gumbo
- 11
- 1
1
vote
0 answers
Apache Ubuntu php include /etc/passwd file
I want to create test case about LFI (Local File Inclusion) but I couldn't.
Old servers can include /etc/passwd file with php's include file
For example:
include ("/etc/passwd");
This prints passwd file to screen but when I tried it in ubuntu…

Berkay Yıldız
- 440
- 3
- 14
0
votes
1 answer
STM32CubeIDE: How to update Includes Folder in Project Explorer
I have a question about how to update Includes folder in a downloaded example from STM32 CubeMX.
Currently, I am working with LoRaWAN_End_Node example downloaded from STM32 CubeMX for the board Nucleo-WL55JC1. Based on that example, I want to add…

Nguyen Huy
- 45
- 9
0
votes
1 answer
SPARQL local files include (LFI) & remote command execution (RCE)
I am pentesting an application using GraphDB and I found a lot of injections in SPARQL requests.
There is very little information about SPARQL injections and I don't really know this DB language.
Does anyone know if it is possible to include files…
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
0 answers
0
votes
3 answers
PHP: Including files dependent on each other
Two files are dependent on each other:
FILE1:
$var1 = 'Straw ' . $var2;
FILE2:
$var2 = ' berry';
$var3 = $var1;
FILE3:
// this file should include FILE1 and FILE2
How should one go about including FILE1 and FILE2 in FILE3 in a way that makes sure…

camursm
- 63
- 1
- 8
0
votes
1 answer
Arduino ( C++ ) not including library in specific project
When I add Arduino's own library to two projects,
one of them successfully compiling, one of them not.
What the reason is? I can't figure out.
Keypad.h:6:27: fatal error: OnewireKeypad.h: No such file or directory
#include
…

Emir Onuk
- 1
- 1
0
votes
1 answer
included files not respected
Trying to include a php file in a script and even though the page loads without showing or logging errors, the included file is not executed.
I have created a test file that looks like this:

cam
- 13
- 5