Entries Tagged as ColdFusion
Sorry hackers, this is not a tutorial on how to hack into
someone's Coldfusion administrator that isn't yours. In order to do this, you need
access to the Coldfusion server files. Now if you have access to those
and your a hacker, well I think the servers administrator has more to
worry about than you just changing the Coldfusion administrator password.
Warning!! Once the password has been changed,
there's not changing it back to what the previous password was, so make
sure you have permission to do this before doing it.
Now that I've warned you, Here's how you do it!
- Locate neo-security.xml This file should be located in your lib
- Open file and locate
<boolean value="true" />
- Change from boolean value="true" to boolean value="false".
- Save file and exit
- Restart Coldfusion services
- Go to the Coldfusion administrator. It should be unlocked.
- Expand "security", select "CF Admin Password".
- Check the check box for the "Use a ColdFusion Administration
password". This will enable the password requirement.
- Enter new password twice and hit "Submit Changes".
ColdFusion have a build in function that allowed you to query structures. A query, in case you don't know is a structure. Basically this can be done by creating a query or structure, then by writing a query but instead of defining a datasource, you define a dbtype which should be set to "query". Then instead of using the name of the table you use the name of the structure that you're trying to query. The reason you would want to do this, is because if you pull a lot of data that relates to a loop normally you would do a query inside the loop, but using QoQ you can create one query above the loop, then while looping use QoQ to query the query that is above the loop. This will increase performance greatly.
<!--- THE QUERY --->
<cfquery name="Dude" datasource="#request.maindatasource#">
WHERE dudeStatus = 'Awesome'
<!--- THE QUERY OF QUERIES --->
<cfquery name="dudeQoQ" dbtype="query">
WHERE dudeStatus2 = 'Really Awesome'
<!--- QUERYING THE QUERY OF QUERIES --->
<cfquery name="dudeQtQoQ" dbtype="query">
WHERE DudesName = 'Paul Alkema'